Skip to contentSkip to conversation

multipath-tools/libmultipath print.c

PATCH [email protected] 1 participant 1 message Jul 9, 2008 Device mapper

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/dm
Module name: multipath-tools
Branch: RHEL5_FC6
Changes by: [email protected] 2008-07-09 20:11:37

Modified files:
libmultipath : print.c

Log message:
Resolves rhbz#442000. Fix whitespace in multipath -ll output.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/print.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.5.2.1&r2=1.5.2.2

libmultipath/print.c +2 -2
@@ -679,9 +679,9 @@
 	c += sprintf(c, "%%n");
 	
 	if (strncmp(mpp->alias, mpp->wwid, WWID_SIZE))
-		c += sprintf(c, " (%%w) ");
+		c += sprintf(c, " (%%w)");
 
-	c += sprintf(c, "%%d ");
+	c += sprintf(c, " %%d ");
 	c += snprint_vpr(c, 24, first_path(mpp));
 
 	fwd += snprint_multipath(buff + fwd, len - fwd, style, mpp);