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

Configure Feed

Select the types of activity you want to include in your feed.

lib/test_bitmap: use pr_info() for non-error messages

pr_err() messages may be treated as errors by some log readers, so let
us only use them for test failures. For non-error messages, replace them
with pr_info().

Suggested-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: Alexander Potapenko <glider@google.com>
Acked-by: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Alexander Potapenko and committed by
David S. Miller
f3e28876 991e5583

+5 -5
+5 -5
lib/test_bitmap.c
··· 548 548 } 549 549 550 550 if (ptest.flags & PARSE_TIME) 551 - pr_err("parselist: %d: input is '%s' OK, Time: %llu\n", 551 + pr_info("parselist: %d: input is '%s' OK, Time: %llu\n", 552 552 i, ptest.in, time); 553 553 554 554 #undef ptest ··· 587 587 goto out; 588 588 } 589 589 590 - pr_err("bitmap_print_to_pagebuf: input is '%s', Time: %llu\n", buf, time); 590 + pr_info("bitmap_print_to_pagebuf: input is '%s', Time: %llu\n", buf, time); 591 591 out: 592 592 kfree(buf); 593 593 kfree(bmap); ··· 665 665 } 666 666 667 667 if (test.flags & PARSE_TIME) 668 - pr_err("parse: %d: input is '%s' OK, Time: %llu\n", 668 + pr_info("parse: %d: input is '%s' OK, Time: %llu\n", 669 669 i, test.in, time); 670 670 } 671 671 } ··· 1421 1421 } 1422 1422 } 1423 1423 time = ktime_get() - time; 1424 - pr_err("Time spent in %s:\t%llu\n", __func__, time); 1424 + pr_info("Time spent in %s:\t%llu\n", __func__, time); 1425 1425 } 1426 1426 1427 1427 static void __init test_bitmap_write_perf(void) ··· 1443 1443 } 1444 1444 } 1445 1445 time = ktime_get() - time; 1446 - pr_err("Time spent in %s:\t%llu\n", __func__, time); 1446 + pr_info("Time spent in %s:\t%llu\n", __func__, time); 1447 1447 } 1448 1448 1449 1449 #undef TEST_BIT_LEN