diff options
author | David Sterba <dsterba@suse.com> | 2016-10-28 18:47:35 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-12-14 15:06:34 +0100 |
commit | 86d2e4b64b2aacbf4b0c610d06375a01233c5bc4 (patch) | |
tree | 6fad501f607026600cb1414a56a345b64b902b08 /cmds-filesystem.c | |
parent | a2883ea16d15ce02c3279f835736e5072dd6e709 (diff) |
btrfs-progs: remove extra newline from messages
The common message helpers add the newline.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-filesystem.c')
-rw-r--r-- | cmds-filesystem.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmds-filesystem.c b/cmds-filesystem.c index 41623f31..96bdc40e 100644 --- a/cmds-filesystem.c +++ b/cmds-filesystem.c @@ -149,7 +149,7 @@ static int get_df(int fd, struct btrfs_ioctl_space_args **sargs_ret) ret = ioctl(fd, BTRFS_IOC_SPACE_INFO, sargs); if (ret < 0) { - error("cannot get space info: %s\n", strerror(errno)); + error("cannot get space info: %s", strerror(errno)); free(sargs); return -errno; } @@ -875,7 +875,7 @@ devs_only: ret = btrfs_scan_devices(); if (ret) { - error("blkid device scan returned %d\n", ret); + error("blkid device scan returned %d", ret); return 1; } @@ -1116,7 +1116,7 @@ static int cmd_filesystem_defrag(int argc, char **argv) dirstream = NULL; fd = open_file_or_dir(argv[i], &dirstream); if (fd < 0) { - error("cannot open %s: %s\n", argv[i], + error("cannot open %s: %s", argv[i], strerror(errno)); defrag_global_errors++; close_file_or_dir(fd, dirstream); @@ -1130,7 +1130,7 @@ static int cmd_filesystem_defrag(int argc, char **argv) continue; } if (!(S_ISDIR(st.st_mode) || S_ISREG(st.st_mode))) { - error("%s is not a directory or a regular file\n", + error("%s is not a directory or a regular file", argv[i]); defrag_global_errors++; close_file_or_dir(fd, dirstream); |