From caeacefe9f4db9c7f853a06d9d50070930a4b2d6 Mon Sep 17 00:00:00 2001 From: Ɓukasz Stelmach Date: Fri, 2 Oct 2015 09:45:49 +0200 Subject: analyze: replace isempty()+ternary with strempty() --- src/analyze/analyze.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/analyze/analyze.c') diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index ae376a9553..c2ebdc3443 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -658,13 +658,13 @@ static int analyze_plot(sd_bus *bus) { svg("\n"); svg("%s", pretty_times); svg("%s %s (%s %s %s) %s %s", - isempty(host->os_pretty_name) ? "Linux" : host->os_pretty_name, - isempty(host->hostname) ? "" : host->hostname, - isempty(host->kernel_name) ? "" : host->kernel_name, - isempty(host->kernel_release) ? "" : host->kernel_release, - isempty(host->kernel_version) ? "" : host->kernel_version, - isempty(host->architecture) ? "" : host->architecture, - isempty(host->virtualization) ? "" : host->virtualization); + strempty(host->os_pretty_name), + strempty(host->hostname), + strempty(host->kernel_name), + strempty(host->kernel_release), + strempty(host->kernel_version), + strempty(host->architecture), + strempty(host->virtualization)); svg("\n", 20.0 + (SCALE_X * boot->firmware_time)); svg_graph_box(m, -(double) boot->firmware_time, boot->finish_time); -- cgit v1.2.3-54-g00ecf