changeset 216:b59e4ce049de

Fix alignment for thread name in debug traces
author Sebastien Decugis <sdecugis@nict.go.jp>
date Fri, 31 Oct 2008 11:10:25 +0900
parents 80a321d2384e
children a18bc49c1b97
files waaad/log.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/waaad/log.h	Fri Oct 31 11:09:06 2008 +0900
+++ b/waaad/log.h	Fri Oct 31 11:10:25 2008 +0900
@@ -141,7 +141,7 @@
 	if ( level <= debug_level + g_conf->log_verbose ) {								\
 		char __buf[25];												\
 		char * __thn = ((char *)pthread_getspecific(thread_name) ?: "unnamed");					\
-		log_debug("\t |*%50s\t%s\tin %s@%s:%d\n"								\
+		log_debug("\t |*%-30s\t%s\tin %s@%s:%d\n"								\
 				"\t%s|%*s" format "\n",  								\
 						__thn, log_time(__buf, sizeof(__buf)), __FUNCTION__, __FILE__, __LINE__,\
 						(level < FULL)?"@":" ",level, "", ## args); 				\
"Welcome to our mercurial repository"