Fixing usage of syslog().
Le Thu, 11 Mar 2010 18:13:49 -0300,
Rajiv Andrade <[email protected]> a écrit :
>
> On Mar 2, 2010, at 12:55 PM, Laurent Bigonville wrote:
>
> >
> > There are currently 12 patches I'm not sure you want me to post
> > them on the mailing list.
> >
> Sorry for the delay, yes, it's ok.
>
> Thanks,
> Rajiv Andrade
>
Author: Albin Tonnerre <[email protected]>
Description: Fixing usage of syslog().
diff -Naurp trousers.orig/src/tcs/log.c trousers/src/tcs/log.c
--- trousers.orig/src/tcs/log.c 2009-08-15 18:29:06.000000000 +0000
+++ trousers/src/tcs/log.c 2009-08-15 18:35:07.000000000 +0000
@@ -45,7 +45,7 @@ LogBlobData(char *szDescriptor, unsigned
if (getenv("TCSD_FOREGROUND") != NULL)
fprintf(stdout, "%s %s\n", szDescriptor, temp);
else
- syslog(LOG_DEBUG, temp);
+ syslog(LOG_DEBUG, "%s", temp);
memset(temp, 0, sizeof(temp));
}
snprintf(&temp[(i%16)*3], 4, "%.2X ", blob[i]);
@@ -55,7 +55,7 @@ LogBlobData(char *szDescriptor, unsigned
if (getenv("TCSD_FOREGROUND") != NULL)
fprintf(stdout, "%s %s\n", szDescriptor, temp);
else
- syslog(LOG_DEBUG, temp);
+ syslog(LOG_DEBUG, "%s", temp);
}
}
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
TrouSerS-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-tech