Skip to content

Commit e3675dc

Browse files
Mikulas PatockaMike Snitzer
authored andcommitted
dm flakey: remove trailing space in the table line
Don't return a trailing space in the output of STATUSTYPE_TABLE. Signed-off-by: Mikulas Patocka <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent 98dba02 commit e3675dc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/md/dm-flakey.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -430,21 +430,21 @@ static void flakey_status(struct dm_target *ti, status_type_t type,
430430
break;
431431

432432
case STATUSTYPE_TABLE:
433-
DMEMIT("%s %llu %u %u ", fc->dev->name,
433+
DMEMIT("%s %llu %u %u", fc->dev->name,
434434
(unsigned long long)fc->start, fc->up_interval,
435435
fc->down_interval);
436436

437437
drop_writes = test_bit(DROP_WRITES, &fc->flags);
438438
error_writes = test_bit(ERROR_WRITES, &fc->flags);
439-
DMEMIT("%u ", drop_writes + error_writes + (fc->corrupt_bio_byte > 0) * 5);
439+
DMEMIT(" %u", drop_writes + error_writes + (fc->corrupt_bio_byte > 0) * 5);
440440

441441
if (drop_writes)
442-
DMEMIT("drop_writes ");
442+
DMEMIT(" drop_writes");
443443
else if (error_writes)
444-
DMEMIT("error_writes ");
444+
DMEMIT(" error_writes");
445445

446446
if (fc->corrupt_bio_byte)
447-
DMEMIT("corrupt_bio_byte %u %c %u %u ",
447+
DMEMIT(" corrupt_bio_byte %u %c %u %u",
448448
fc->corrupt_bio_byte,
449449
(fc->corrupt_bio_rw == WRITE) ? 'w' : 'r',
450450
fc->corrupt_bio_value, fc->corrupt_bio_flags);

0 commit comments

Comments
 (0)