Skip to contentSkip to conversation

dm log userspace, fix table status output

PATCH New Jonathan Brassow 1 participant 1 message Jul 28, 2009 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dm log userspace, fix table status output

'dmsetup table' is not coming out right. This patch and the following patch fix that.

brassow

The missing ' ' at the end of the status output causes mirror status output arguments to run together. Adding the space at the end makes this log module consistent with the other two existing log modules, "disk" and "core".

drivers/md/dm-log-userspace-base.c +1 -1
Index: linux-2.6/drivers/md/dm-log-userspace-base.c
===================================================================
@@ -577,7 +577,7 @@ static int userspace_status(struct dm_di
 		break;
 	case STATUSTYPE_TABLE:
 		sz = 0;
-		DMEMIT("%s %u %s %s", log->type->name, lc->usr_argc + 1,
+		DMEMIT("%s %u %s %s ", log->type->name, lc->usr_argc + 1,
 		       lc->uuid, lc->usr_argv_str);
 		break;
 	}