]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
salvager: fix formatting in the rest of the Log messages
authorDerrick Brashear <shadow@your-file-system.com>
Mon, 15 Oct 2012 16:22:03 +0000 (12:22 -0400)
committerDerrick Brashear <shadow@your-file-system.com>
Thu, 18 Oct 2012 11:47:00 +0000 (04:47 -0700)
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 <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/vol/salvager.c

index a34029e24a9f5a1ade28324023595485c9091b36..ef1709212d2bb909ee02248affc02aea1490e215 100644 (file)
@@ -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);