Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 315b76b4 authored by David Sterba's avatar David Sterba
Browse files

btrfs: tests: drop newline from test_msg strings



Now that test_err strings do not need the newline, remove them also from
the test_msg.

Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 3c7251f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -9,7 +9,7 @@
#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
int btrfs_run_sanity_tests(void);
int btrfs_run_sanity_tests(void);


#define test_msg(fmt, ...) pr_info("BTRFS: selftest: " fmt, ##__VA_ARGS__)
#define test_msg(fmt, ...) pr_info("BTRFS: selftest: " fmt "\n", ##__VA_ARGS__)
#define test_err(fmt, ...) pr_err("BTRFS: selftest: " fmt "\n", ##__VA_ARGS__)
#define test_err(fmt, ...) pr_err("BTRFS: selftest: " fmt "\n", ##__VA_ARGS__)


struct btrfs_root;
struct btrfs_root;
+2 −2
Original line number Original line Diff line number Diff line
@@ -26,7 +26,7 @@ static int test_btrfs_split_item(u32 sectorsize, u32 nodesize)
	u32 value_len = strlen(value);
	u32 value_len = strlen(value);
	int ret = 0;
	int ret = 0;


	test_msg("running btrfs_split_item tests\n");
	test_msg("running btrfs_split_item tests");


	fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize);
	fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize);
	if (!fs_info) {
	if (!fs_info) {
@@ -220,6 +220,6 @@ static int test_btrfs_split_item(u32 sectorsize, u32 nodesize)


int btrfs_test_extent_buffer_operations(u32 sectorsize, u32 nodesize)
int btrfs_test_extent_buffer_operations(u32 sectorsize, u32 nodesize)
{
{
	test_msg("running extent buffer operation tests\n");
	test_msg("running extent buffer operation tests");
	return test_btrfs_split_item(sectorsize, nodesize);
	return test_btrfs_split_item(sectorsize, nodesize);
}
}
+4 −4
Original line number Original line Diff line number Diff line
@@ -68,7 +68,7 @@ static int test_find_delalloc(u32 sectorsize)
	u64 found;
	u64 found;
	int ret = -EINVAL;
	int ret = -EINVAL;


	test_msg("running find delalloc tests\n");
	test_msg("running find delalloc tests");


	inode = btrfs_new_test_inode();
	inode = btrfs_new_test_inode();
	if (!inode) {
	if (!inode) {
@@ -377,7 +377,7 @@ static int test_eb_bitmaps(u32 sectorsize, u32 nodesize)
	struct extent_buffer *eb;
	struct extent_buffer *eb;
	int ret;
	int ret;


	test_msg("running extent buffer bitmap tests\n");
	test_msg("running extent buffer bitmap tests");


	/*
	/*
	 * In ppc64, sectorsize can be 64K, thus 4 * 64K will be larger than
	 * In ppc64, sectorsize can be 64K, thus 4 * 64K will be larger than
@@ -425,7 +425,7 @@ int btrfs_test_extent_io(u32 sectorsize, u32 nodesize)
{
{
	int ret;
	int ret;


	test_msg("running extent I/O tests\n");
	test_msg("running extent I/O tests");


	ret = test_find_delalloc(sectorsize);
	ret = test_find_delalloc(sectorsize);
	if (ret)
	if (ret)
@@ -433,6 +433,6 @@ int btrfs_test_extent_io(u32 sectorsize, u32 nodesize)


	ret = test_eb_bitmaps(sectorsize, nodesize);
	ret = test_eb_bitmaps(sectorsize, nodesize);
out:
out:
	test_msg("extent I/O tests finished\n");
	test_msg("extent I/O tests finished");
	return ret;
	return ret;
}
}
+2 −2
Original line number Original line Diff line number Diff line
@@ -341,7 +341,7 @@ int btrfs_test_extent_map(void)
	struct btrfs_fs_info *fs_info = NULL;
	struct btrfs_fs_info *fs_info = NULL;
	struct extent_map_tree *em_tree;
	struct extent_map_tree *em_tree;


	test_msg("running extent_map tests\n");
	test_msg("running extent_map tests");


	/*
	/*
	 * Note: the fs_info is not set up completely, we only need
	 * Note: the fs_info is not set up completely, we only need
@@ -349,7 +349,7 @@ int btrfs_test_extent_map(void)
	 */
	 */
	fs_info = btrfs_alloc_dummy_fs_info(PAGE_SIZE, PAGE_SIZE);
	fs_info = btrfs_alloc_dummy_fs_info(PAGE_SIZE, PAGE_SIZE);
	if (!fs_info) {
	if (!fs_info) {
		test_msg("Couldn't allocate dummy fs info\n");
		test_msg("Couldn't allocate dummy fs info");
		return -ENOMEM;
		return -ENOMEM;
	}
	}


+6 −6
Original line number Original line Diff line number Diff line
@@ -20,7 +20,7 @@ static int test_extents(struct btrfs_block_group_cache *cache)
{
{
	int ret = 0;
	int ret = 0;


	test_msg("running extent only tests\n");
	test_msg("running extent only tests");


	/* First just make sure we can remove an entire entry */
	/* First just make sure we can remove an entire entry */
	ret = btrfs_add_free_space(cache, 0, SZ_4M);
	ret = btrfs_add_free_space(cache, 0, SZ_4M);
@@ -92,7 +92,7 @@ static int test_bitmaps(struct btrfs_block_group_cache *cache,
	u64 next_bitmap_offset;
	u64 next_bitmap_offset;
	int ret;
	int ret;


	test_msg("running bitmap only tests\n");
	test_msg("running bitmap only tests");


	ret = test_add_free_space_entry(cache, 0, SZ_4M, 1);
	ret = test_add_free_space_entry(cache, 0, SZ_4M, 1);
	if (ret) {
	if (ret) {
@@ -161,7 +161,7 @@ static int test_bitmaps_and_extents(struct btrfs_block_group_cache *cache,
	u64 bitmap_offset = (u64)(BITS_PER_BITMAP * sectorsize);
	u64 bitmap_offset = (u64)(BITS_PER_BITMAP * sectorsize);
	int ret;
	int ret;


	test_msg("running bitmap and extent tests\n");
	test_msg("running bitmap and extent tests");


	/*
	/*
	 * First let's do something simple, an extent at the same offset as the
	 * First let's do something simple, an extent at the same offset as the
@@ -404,7 +404,7 @@ test_steal_space_from_bitmap_to_extent(struct btrfs_block_group_cache *cache,
	};
	};
	const struct btrfs_free_space_op *orig_free_space_ops;
	const struct btrfs_free_space_op *orig_free_space_ops;


	test_msg("running space stealing from bitmap to extent\n");
	test_msg("running space stealing from bitmap to extent");


	/*
	/*
	 * For this test, we want to ensure we end up with an extent entry
	 * For this test, we want to ensure we end up with an extent entry
@@ -832,7 +832,7 @@ int btrfs_test_free_space_cache(u32 sectorsize, u32 nodesize)
	struct btrfs_root *root = NULL;
	struct btrfs_root *root = NULL;
	int ret = -ENOMEM;
	int ret = -ENOMEM;


	test_msg("running btrfs free space cache tests\n");
	test_msg("running btrfs free space cache tests");
	fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize);
	fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize);
	if (!fs_info)
	if (!fs_info)
		return -ENOMEM;
		return -ENOMEM;
@@ -874,6 +874,6 @@ int btrfs_test_free_space_cache(u32 sectorsize, u32 nodesize)
	btrfs_free_dummy_block_group(cache);
	btrfs_free_dummy_block_group(cache);
	btrfs_free_dummy_root(root);
	btrfs_free_dummy_root(root);
	btrfs_free_dummy_fs_info(fs_info);
	btrfs_free_dummy_fs_info(fs_info);
	test_msg("free space cache tests finished\n");
	test_msg("free space cache tests finished");
	return ret;
	return ret;
}
}
Loading