diff --git a/lkcd_v1.c b/lkcd_v1.c index 5f891aeb..31bdc04c 100644 --- a/lkcd_v1.c +++ b/lkcd_v1.c @@ -249,8 +249,7 @@ dump_lkcd_environment_v1(ulong arg) lkcd_print(" dh_eip: %lx\n", dh->dh_eip); lkcd_print(" dh_num_pages: %d\n", dh->dh_num_pages); lkcd_print(" dh_panic_string: %s%s", dh->dh_panic_string, - dh && dh->dh_panic_string && - strstr(dh->dh_panic_string, "\n") ? "" : "\n"); + dh && strstr(dh->dh_panic_string, "\n") ? "" : "\n"); lkcd_print(" dh_time: %s\n", strip_linefeeds(ctime(&(dh->dh_time.tv_sec)))); diff --git a/lkcd_v2_v3.c b/lkcd_v2_v3.c index 8635a7b0..edcb6637 100644 --- a/lkcd_v2_v3.c +++ b/lkcd_v2_v3.c @@ -307,8 +307,7 @@ dump_lkcd_environment_v2_v3(ulong arg) lkcd_print(" dh_num_pages: "); lkcd_print(BITS32() ? "%ld\n" : "%d\n", dh->dh_num_pages); lkcd_print(" dh_panic_string: %s%s", dh->dh_panic_string, - dh && dh->dh_panic_string && - strstr(dh->dh_panic_string, "\n") ? "" : "\n"); + dh && strstr(dh->dh_panic_string, "\n") ? "" : "\n"); lkcd_print(" dh_time: %s\n", strip_linefeeds(ctime(&(dh->dh_time.tv_sec)))); diff --git a/lkcd_v5.c b/lkcd_v5.c index cb7634d0..e3bfa6f4 100644 --- a/lkcd_v5.c +++ b/lkcd_v5.c @@ -270,8 +270,7 @@ dump_lkcd_environment_v5(ulong arg) lkcd_print(" dh_num_pages: "); lkcd_print(BITS32() ? "%ld\n" : "%d\n", dh->dh_num_pages); lkcd_print(" dh_panic_string: %s%s", dh->dh_panic_string, - dh && dh->dh_panic_string && - strstr(dh->dh_panic_string, "\n") ? "" : "\n"); + dh && strstr(dh->dh_panic_string, "\n") ? "" : "\n"); lkcd_print(" dh_time: %s\n", strip_linefeeds(ctime(&(dh->dh_time.tv_sec)))); diff --git a/lkcd_v7.c b/lkcd_v7.c index 608e1481..97d99008 100644 --- a/lkcd_v7.c +++ b/lkcd_v7.c @@ -347,8 +347,7 @@ dump_lkcd_environment_v7(ulong arg) lkcd_print(" dh_num_pages: "); lkcd_print(BITS32() ? "%ld\n" : "%d\n", dh->dh_num_pages); lkcd_print(" dh_panic_string: %s%s", dh->dh_panic_string, - dh && dh->dh_panic_string && - strstr(dh->dh_panic_string, "\n") ? "" : "\n"); + dh && strstr(dh->dh_panic_string, "\n") ? "" : "\n"); lkcd_print(" dh_time: %s\n", strip_linefeeds(ctime(&(dh->dh_time.tv_sec)))); diff --git a/lkcd_v8.c b/lkcd_v8.c index 3b355e05..4167fa5e 100644 --- a/lkcd_v8.c +++ b/lkcd_v8.c @@ -543,8 +543,7 @@ dump_lkcd_environment_v8(ulong arg) lkcd_print(" dh_num_pages: "); lkcd_print(BITS32() ? "%ld\n" : "%d\n", dh->dh_num_pages); lkcd_print(" dh_panic_string: %s%s", dh->dh_panic_string, - dh && dh->dh_panic_string && - strstr(dh->dh_panic_string, "\n") ? "" : "\n"); + dh && strstr(dh->dh_panic_string, "\n") ? "" : "\n"); tv.tv_sec = dh->dh_time.tv_sec; lkcd_print(" dh_time: %s\n", strip_linefeeds(ctime(&(tv.tv_sec))));