From: Derrick Brashear Date: Mon, 15 Oct 2012 16:22:03 +0000 (-0400) Subject: salvager: fix formatting in the rest of the Log messages X-Git-Tag: upstream/1.8.0_pre1^2~1916 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=611e80ee125214be038c6d9735dca0bd0b3a7cdf;p=packages%2Fo%2Fopenafs.git salvager: fix formatting in the rest of the Log messages right now some not-commonly-defined code fails to compile with warnings. fix it so it uses a format string like everything else. Change-Id: Ib35445db9800444f3ee74a43f17aeb6f2959645a Reviewed-on: http://gerrit.openafs.org/8236 Reviewed-by: Derrick Brashear Tested-by: BuildBot --- diff --git a/src/vol/salvager.c b/src/vol/salvager.c index a34029e24..ef1709212 100644 --- a/src/vol/salvager.c +++ b/src/vol/salvager.c @@ -153,7 +153,7 @@ handleit(struct cmd_syndesc *as, void *arock) #ifndef AFS_NT40_ENV if (useSyslog) - Log(msg); + Log("%s", msg); else #endif printf("%s\n", msg); @@ -270,7 +270,7 @@ handleit(struct cmd_syndesc *as, void *arock) #ifndef AFS_NT40_ENV if (useSyslog) - Log(msg); + Log("%s", msg); else #endif printf("%s\n", msg);