check_node_or_leaf_size in utils.c now prints 'nodesize (or leafsize)'
instead of 'leafsize (or nodesize)' in the error messages, in order to
be less confusing for the user, as leafsize in mkfs is deprecated.
'ERROR: ' is also prepended to be consistent with other error messages.
Signed-off-by: Sebastian Thorarensen <sebth@xxxxxxx>
---
utils.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/utils.c b/utils.c
index ba01e0c..ffd3e6e 100644
--- a/utils.c
+++ b/utils.c
@@ -2725,17 +2725,17 @@ int check_node_or_leaf_size(u32 size, u32 sectorsize)
{
if (size < sectorsize) {
fprintf(stderr,
- "Illegal leafsize (or nodesize) %u (smaller than %u)\n",
+ "ERROR: Illegal nodesize (or leafsize) %u (smaller than %u)\n",
size, sectorsize);
return -1;
} else if (size > BTRFS_MAX_METADATA_BLOCKSIZE) {
fprintf(stderr,
- "Illegal leafsize (or nodesize) %u (larger than %u)\n",
+ "ERROR: Illegal nodesize (or leafsize) %u (larger than %u)\n",
size, BTRFS_MAX_METADATA_BLOCKSIZE);
return -1;
} else if (size & (sectorsize - 1)) {
fprintf(stderr,
- "Illegal leafsize (or nodesize) %u (not align to %u)\n",
+ "ERROR: Illegal nodesize (or leafsize) %u (not aligned to %u)\n",
size, sectorsize);
return -1;
}
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html