Skip to contentSkip to conversation

dm delay: fix status

PATCH In review Alasdair G Kergon 1 participant 1 message Oct 12, 2007 Device mapper

lore
Share & tools
lore

Alasdair G Kergon

author maintainer
#0 lore raw

PATCH 7/25 dm delay: fix status

From: Milan Broz <[email protected]>

Fix missing space in dm-delay target status output if separate read and write delay are configured.

---
 drivers/md/dm-delay.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-delay.c +1 -1
Index: linux-2.6.23/drivers/md/dm-delay.c
===================================================================
@@ -308,7 +308,7 @@ static int delay_status(struct dm_target
 		       (unsigned long long) dc->start_read,
 		       dc->read_delay);
 		if (dc->dev_write)
-			DMEMIT("%s %llu %u", dc->dev_write->name,
+			DMEMIT(" %s %llu %u", dc->dev_write->name,
 			       (unsigned long long) dc->start_write,
 			       dc->write_delay);
 		break;