btrfs: tests: use standard error message after extent buffer allocation failure
[sfrench/cifs-2.6.git] / fs / btrfs / tests / inode-tests.c
index af0c8e30d9e219a13d36e5e8263baee8617f2f47..e63c128c741c3d53e6e1ebea45518be882c7828d 100644 (file)
@@ -238,19 +238,19 @@ static noinline int test_btrfs_get_extent(u32 sectorsize, u32 nodesize)
 
        fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize);
        if (!fs_info) {
-               test_err("couldn't allocate dummy fs info");
+               test_std_err(TEST_ALLOC_FS_INFO);
                goto out;
        }
 
        root = btrfs_alloc_dummy_root(fs_info);
        if (IS_ERR(root)) {
-               test_err("couldn't allocate root");
+               test_std_err(TEST_ALLOC_ROOT);
                goto out;
        }
 
        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;
        }
 
@@ -839,19 +839,19 @@ static int test_hole_first(u32 sectorsize, u32 nodesize)
 
        fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize);
        if (!fs_info) {
-               test_err("couldn't allocate dummy fs info");
+               test_std_err(TEST_ALLOC_FS_INFO);
                goto out;
        }
 
        root = btrfs_alloc_dummy_root(fs_info);
        if (IS_ERR(root)) {
-               test_err("couldn't allocate root");
+               test_std_err(TEST_ALLOC_ROOT);
                goto out;
        }
 
        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;
        }
 
@@ -935,13 +935,13 @@ static int test_extent_accounting(u32 sectorsize, u32 nodesize)
 
        fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize);
        if (!fs_info) {
-               test_err("couldn't allocate dummy fs info");
+               test_std_err(TEST_ALLOC_FS_INFO);
                goto out;
        }
 
        root = btrfs_alloc_dummy_root(fs_info);
        if (IS_ERR(root)) {
-               test_err("couldn't allocate root");
+               test_std_err(TEST_ALLOC_ROOT);
                goto out;
        }