mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
dmsetup: replace (f)printf("\n") with putchar/putc
This commit is contained in:
parent
febda60f3d
commit
2b46fe5843
@ -978,7 +978,7 @@ static void _display_info_long(struct dm_task *dmt, struct dm_info *info)
|
||||
if ((uuid = dm_task_get_uuid(dmt)) && *uuid)
|
||||
printf("UUID: %s\n", uuid);
|
||||
|
||||
printf("\n");
|
||||
putchar('\n');
|
||||
}
|
||||
|
||||
static int _display_info(struct dm_task *dmt)
|
||||
@ -1612,7 +1612,7 @@ static char _yes_no_prompt(const char *prompt, ...)
|
||||
} while (!ret || c != '\n');
|
||||
|
||||
if (c != '\n')
|
||||
printf("\n");
|
||||
putchar('\n');
|
||||
|
||||
return ret;
|
||||
}
|
||||
@ -2213,13 +2213,13 @@ static int _status(CMD_ARGS)
|
||||
printf(FMTu64 " " FMTu64 " %s %s",
|
||||
start, length, target_type, params);
|
||||
}
|
||||
printf("\n");
|
||||
putchar('\n');
|
||||
}
|
||||
matched = 1;
|
||||
} while (next);
|
||||
|
||||
if (multiple_devices && _switches[VERBOSE_ARG] && matched && !ls_only)
|
||||
printf("\n");
|
||||
putchar('\n');
|
||||
|
||||
if (matched && _switches[EXEC_ARG] && _command_to_exec && !_exec_command(name))
|
||||
goto_out;
|
||||
@ -2374,10 +2374,10 @@ static int _deps(CMD_ARGS)
|
||||
else
|
||||
printf(" (%d, %d)", major, minor);
|
||||
}
|
||||
printf("\n");
|
||||
putchar('\n');
|
||||
|
||||
if (multiple_devices && _switches[VERBOSE_ARG])
|
||||
printf("\n");
|
||||
putchar('\n');
|
||||
|
||||
r = 1;
|
||||
|
||||
@ -5950,7 +5950,7 @@ static void _stats_usage(FILE *out)
|
||||
|
||||
fprintf(out, "\n<device> may be device name or (if only one) -u <uuid> or -j <major> -m <minor>\n");
|
||||
fprintf(out, "<fields> are comma-separated. Use 'help -c' for list.\n");
|
||||
fprintf(out, "\n");
|
||||
putc('\n', out);
|
||||
}
|
||||
|
||||
static void _dmsetup_usage(FILE *out)
|
||||
@ -5981,7 +5981,7 @@ static void _dmsetup_usage(FILE *out)
|
||||
fprintf(out, "Options are: devno, devname, blkdevname.\n");
|
||||
fprintf(out, "Tree specific options are: ascii, utf, vt100; compact, inverted, notrunc;\n"
|
||||
" blkdevname, [no]device, active, open, rw and uuid.\n");
|
||||
fprintf(out, "\n");
|
||||
putc('\n', out);
|
||||
}
|
||||
|
||||
static void _losetup_usage(FILE *out)
|
||||
@ -7079,7 +7079,7 @@ doit:
|
||||
dm_report_output(_report);
|
||||
|
||||
if (_count > 1 && r) {
|
||||
printf("\n");
|
||||
putchar('\n');
|
||||
fflush(stdout);
|
||||
/* wait for --interval and update timestamps */
|
||||
if (!_do_report_wait()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user