diff options
author | Tsutomu Itoh <t-itoh@jp.fujitsu.com> | 2015-08-07 09:20:25 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-08-31 19:25:13 +0200 |
commit | f32b82ba9893dd55ae104090668b200887cd78cc (patch) | |
tree | 466cdeee208f4fac2b52ca6d8281db587975c4ff /dir-item.c | |
parent | ec1fc69d3945f67684a2c15969dfb309ed967168 (diff) |
btrfs-progs: add newline to some error messages
Added a missing newline to some error messages.
Also printf() was changed to fprintf(stderr) for error messages.
Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Reviewed-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'dir-item.c')
-rw-r--r-- | dir-item.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -285,7 +285,7 @@ int verify_dir_item(struct btrfs_root *root, u8 type = btrfs_dir_type(leaf, dir_item); if (type >= BTRFS_FT_MAX) { - fprintf(stderr, "invalid dir item type: %d", + fprintf(stderr, "invalid dir item type: %d\n", (int)type); return 1; } @@ -294,7 +294,7 @@ int verify_dir_item(struct btrfs_root *root, namelen = XATTR_NAME_MAX; if (btrfs_dir_name_len(leaf, dir_item) > namelen) { - fprintf(stderr, "invalid dir item name len: %u", + fprintf(stderr, "invalid dir item name len: %u\n", (unsigned)btrfs_dir_data_len(leaf, dir_item)); return 1; } @@ -302,7 +302,7 @@ int verify_dir_item(struct btrfs_root *root, /* BTRFS_MAX_XATTR_SIZE is the same for all dir items */ if ((btrfs_dir_data_len(leaf, dir_item) + btrfs_dir_name_len(leaf, dir_item)) > BTRFS_MAX_XATTR_SIZE(root)) { - fprintf(stderr, "invalid dir item name + data len: %u + %u", + fprintf(stderr, "invalid dir item name + data len: %u + %u\n", (unsigned)btrfs_dir_name_len(leaf, dir_item), (unsigned)btrfs_dir_data_len(leaf, dir_item)); return 1; |