summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tests/inode-tests.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-03-15 17:28:46 +0100
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:25 +0200
commit9e3d9f8462ef020e2e4d256064f15fc7eb657156 (patch)
treea6428575d02dafab4cd751094e847a6b385750e8 /fs/btrfs/tests/inode-tests.c
parentbtrfs: tests: use standard error message after root allocation failure (diff)
downloadlinux-9e3d9f8462ef020e2e4d256064f15fc7eb657156.tar.xz
linux-9e3d9f8462ef020e2e4d256064f15fc7eb657156.zip
btrfs: tests: use standard error message after extent buffer allocation failure
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tests/inode-tests.c')
-rw-r--r--fs/btrfs/tests/inode-tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/tests/inode-tests.c b/fs/btrfs/tests/inode-tests.c
index 5803f342c47b..e63c128c741c 100644
--- a/fs/btrfs/tests/inode-tests.c
+++ b/fs/btrfs/tests/inode-tests.c
@@ -250,7 +250,7 @@ static noinline int test_btrfs_get_extent(u32 sectorsize, u32 nodesize)
root->node = alloc_dummy_extent_buffer(fs_info, nodesize);
if (!root->node) {
- test_err("couldn't allocate dummy buffer");
+ test_std_err(TEST_ALLOC_ROOT);
goto out;
}
@@ -851,7 +851,7 @@ static int test_hole_first(u32 sectorsize, u32 nodesize)
root->node = alloc_dummy_extent_buffer(fs_info, nodesize);
if (!root->node) {
- test_err("couldn't allocate dummy buffer");
+ test_std_err(TEST_ALLOC_ROOT);
goto out;
}