From 611e80ee125214be038c6d9735dca0bd0b3a7cdf Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Mon, 15 Oct 2012 12:22:03 -0400 Subject: [PATCH] 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 --- src/vol/salvager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vol/salvager.c b/src/vol/salvager.c index a34029e24a..ef1709212d 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);