OSDN Git Service

btrfs: tests: add helper for error messages and update them
authorDavid Sterba <dsterba@suse.com>
Wed, 16 May 2018 22:00:42 +0000 (00:00 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 29 May 2018 16:12:51 +0000 (18:12 +0200)
commit3c7251f2f8888086c5769f83651018a5494f784b
tree0a8c4f515f9786cf4669fd95e69ce5d66d284566
parentad1e3d5672ddce03eaa811c3f8d728acefac9a19
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>
fs/btrfs/tests/btrfs-tests.h
fs/btrfs/tests/extent-buffer-tests.c
fs/btrfs/tests/extent-io-tests.c
fs/btrfs/tests/extent-map-tests.c
fs/btrfs/tests/free-space-tests.c
fs/btrfs/tests/free-space-tree-tests.c
fs/btrfs/tests/inode-tests.c
fs/btrfs/tests/qgroup-tests.c