Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

btrfs: tests: use standard error message after path allocation failure

Signed-off-by: David Sterba <dsterba@suse.com>

+6 -6
+1 -1
fs/btrfs/tests/extent-buffer-tests.c
··· 43 43 44 44 path = btrfs_alloc_path(); 45 45 if (!path) { 46 - test_err("could not allocate path"); 46 + test_std_err(TEST_ALLOC_PATH); 47 47 ret = -ENOMEM; 48 48 goto out; 49 49 }
+1 -1
fs/btrfs/tests/free-space-tree-tests.c
··· 486 486 487 487 path = btrfs_alloc_path(); 488 488 if (!path) { 489 - test_err("couldn't allocate path"); 489 + test_std_err(TEST_ALLOC_ROOT); 490 490 ret = -ENOMEM; 491 491 goto out; 492 492 }
+4 -4
fs/btrfs/tests/qgroup-tests.c
··· 32 32 33 33 path = btrfs_alloc_path(); 34 34 if (!path) { 35 - test_err("couldn't allocate path"); 35 + test_std_err(TEST_ALLOC_ROOT); 36 36 return -ENOMEM; 37 37 } 38 38 ··· 82 82 83 83 path = btrfs_alloc_path(); 84 84 if (!path) { 85 - test_err("couldn't allocate path"); 85 + test_std_err(TEST_ALLOC_ROOT); 86 86 return -ENOMEM; 87 87 } 88 88 ··· 132 132 133 133 path = btrfs_alloc_path(); 134 134 if (!path) { 135 - test_err("couldn't allocate path"); 135 + test_std_err(TEST_ALLOC_ROOT); 136 136 return -ENOMEM; 137 137 } 138 138 path->leave_spinning = 1; ··· 166 166 167 167 path = btrfs_alloc_path(); 168 168 if (!path) { 169 - test_err("couldn't allocate path"); 169 + test_std_err(TEST_ALLOC_ROOT); 170 170 return -ENOMEM; 171 171 } 172 172