btrfs: tests: use standard error message after extent buffer allocation failure
[sfrench/cifs-2.6.git] / fs / btrfs / tests / extent-buffer-tests.c
index 7d72eab6d32c2687967d3b0d992749b80c9e65d7..dc2582554cf05c62bb36faa1ec769bb834f0ac6d 100644 (file)
@@ -30,13 +30,13 @@ static int test_btrfs_split_item(u32 sectorsize, u32 nodesize)
 
        fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize);
        if (!fs_info) {
-               test_err("could not allocate fs_info");
+               test_std_err(TEST_ALLOC_FS_INFO);
                return -ENOMEM;
        }
 
        root = btrfs_alloc_dummy_root(fs_info);
        if (IS_ERR(root)) {
-               test_err("could not allocate root");
+               test_std_err(TEST_ALLOC_ROOT);
                ret = PTR_ERR(root);
                goto out;
        }
@@ -50,7 +50,7 @@ static int test_btrfs_split_item(u32 sectorsize, u32 nodesize)
 
        path->nodes[0] = eb = alloc_dummy_extent_buffer(fs_info, nodesize);
        if (!eb) {
-               test_err("could not allocate dummy buffer");
+               test_std_err(TEST_ALLOC_EXTENT_BUFFER);
                ret = -ENOMEM;
                goto out;
        }