DEVEL15-vsprocs-log-format-bug-20090531
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Mon, 1 Jun 2009 00:13:59 +0000 (00:13 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 1 Jun 2009 00:13:59 +0000 (00:13 +0000)
LICENSE IPL10

fix the logged data to avoid a format string issue

(cherry picked from commit 8e0b8243ea8b38e6ceab8f1dc6a0e032d6622568)

src/volser/vsprocs.c

index 03ba43c..23abfc4 100644 (file)
@@ -2361,7 +2361,7 @@ cpincr:
                      &cookie);
     EGOTO1(mfail, code,
           "Failed to do the%s dump from old site to new site\n",
-          afromvol);
+          (flags & RV_NOCLONE) ? "" : " incremental");
     VDONE;
 
     VPRINT1("Setting volume flags on destination volume %u ...", newVol);