Skip to content

Commit 2b89ae7

Browse files
committed
stress-pagescatter: actually make # pages field 10 chars wide
Fixes: 292871b ("stress-pagescatter: widen # pages field to 10 chars for 2^30") Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
1 parent c240c4d commit 2b89ae7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stress-pagescatter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ static int stress_pagescatter(stress_args_t *args)
480480
stress_proc_state_set(args->name, STRESS_STATE_DEINIT);
481481

482482
/* # pages field is 10 chars wide for 2^30 pages */
483-
(void)snprintf(buffer, sizeof(buffer), "%14s", "# pages");
483+
(void)snprintf(buffer, sizeof(buffer), "%10s", "# pages");
484484
for (i = 0; i < SCATTER_MAX; i++) {
485485
(void)snprintf(tmp, sizeof(tmp), " %10s", scatter_types[i]);
486486
(void)shim_strlcat(buffer, tmp, sizeof(buffer));

0 commit comments

Comments
 (0)