Skip to contentSkip to conversation

dm mirror: remove trailing space from table

PATCH In review Alasdair G Kergon 1 participant 1 message Sep 14, 2006 Device mapper

lore
Share & tools
lore

Alasdair G Kergon

author maintainer
#0 lore raw

PATCH 12/25 dm mirror: remove trailing space from table

From: Jonathan Brassow <[email protected]>

Remove trailing space from 'dmsetup table' output.

drivers/md/dm-raid1.c +2 -2
Index: linux-2.6.18-rc7/drivers/md/dm-raid1.c
===================================================================
@@ -1213,9 +1213,9 @@ static int mirror_status(struct dm_targe
 		break;
 
 	case STATUSTYPE_TABLE:
-		DMEMIT("%d ", ms->nr_mirrors);
+		DMEMIT("%d", ms->nr_mirrors);
 		for (m = 0; m < ms->nr_mirrors; m++)
-			DMEMIT("%s %llu ", ms->mirror[m].dev->name,
+			DMEMIT(" %s %llu", ms->mirror[m].dev->name,
 				(unsigned long long)ms->mirror[m].offset);
 	}