[FFmpeg-cvslog] r23767 - trunk/libavutil/log.c

jai_menon subversion
Fri Jun 25 06:36:18 CEST 2010


Author: jai_menon
Date: Fri Jun 25 06:36:17 2010
New Revision: 23767

Log:
Print a space after the AVClass prefix.
This improves readability a bit.

Modified:
   trunk/libavutil/log.c

Modified: trunk/libavutil/log.c
==============================================================================
--- trunk/libavutil/log.c	Fri Jun 25 06:29:02 2010	(r23766)
+++ trunk/libavutil/log.c	Fri Jun 25 06:36:17 2010	(r23767)
@@ -94,10 +94,10 @@ void av_log_default_callback(void* ptr, 
         if(avc->version >= (50<<16 | 15<<8 | 3) && avc->parent_log_context_offset){
             AVClass** parent= *(AVClass***)(((uint8_t*)ptr) + avc->parent_log_context_offset);
             if(parent && *parent){
-                snprintf(line, sizeof(line), "[%s @ %p]", (*parent)->item_name(parent), parent);
+                snprintf(line, sizeof(line), "[%s @ %p] ", (*parent)->item_name(parent), parent);
             }
         }
-        snprintf(line + strlen(line), sizeof(line) - strlen(line), "[%s @ %p]", avc->item_name(ptr), ptr);
+        snprintf(line + strlen(line), sizeof(line) - strlen(line), "[%s @ %p] ", avc->item_name(ptr), ptr);
     }
 
     vsnprintf(line + strlen(line), sizeof(line) - strlen(line), fmt, vl);



More information about the ffmpeg-cvslog mailing list