diff options
author | David Sterba <dsterba@suse.com> | 2018-05-17 00:00:42 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-05-29 18:12:51 +0200 |
commit | 3c7251f2f8888086c5769f83651018a5494f784b (patch) | |
tree | 0a8c4f515f9786cf4669fd95e69ce5d66d284566 /fs/btrfs/tests/btrfs-tests.h | |
parent | btrfs: use error code returned by btrfs_read_fs_root_no_name in search ioctl (diff) | |
download | linux-3c7251f2f8888086c5769f83651018a5494f784b.tar.xz linux-3c7251f2f8888086c5769f83651018a5494f784b.zip |
btrfs: tests: add helper for error messages and update them
The test failures are not clearly visible in the system log as they're
printed at INFO level. Add a new helper that is level ERROR. As this
touches almost all strings, I took the opportunity to unify them:
- decapitalize the first letter as there's a prefix and the text
continues after ":"
- glue strings split to more lines and un-indent so they fit to 80
columns
- use %llu instead of %Lu
- drop \n from the modified messages (test_msg is left untouched)
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tests/btrfs-tests.h')
-rw-r--r-- | fs/btrfs/tests/btrfs-tests.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/tests/btrfs-tests.h b/fs/btrfs/tests/btrfs-tests.h index 4c11cffb377c..47b5d2eac790 100644 --- a/fs/btrfs/tests/btrfs-tests.h +++ b/fs/btrfs/tests/btrfs-tests.h @@ -10,6 +10,7 @@ int btrfs_run_sanity_tests(void); #define test_msg(fmt, ...) pr_info("BTRFS: selftest: " fmt, ##__VA_ARGS__) +#define test_err(fmt, ...) pr_err("BTRFS: selftest: " fmt "\n", ##__VA_ARGS__) struct btrfs_root; struct btrfs_trans_handle; |