From: Ɓukasz Stelmach Date: Fri, 2 Oct 2015 07:45:49 +0000 (+0200) Subject: analyze: replace isempty()+ternary with strempty() X-Git-Tag: v227~16^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=caeacefe9f4db9c7f853a06d9d50070930a4b2d6;p=thirdparty%2Fsystemd.git analyze: replace isempty()+ternary with strempty() --- diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index ae376a95538..c2ebdc34436 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);