summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorŁukasz Stelmach <l.stelmach@samsung.com>2015-10-02 09:45:49 +0200
committerŁukasz Stelmach <l.stelmach@samsung.com>2015-10-06 17:56:19 +0200
commitcaeacefe9f4db9c7f853a06d9d50070930a4b2d6 (patch)
treea536f74cab9506286f8ea5fb038436fa3b17f904 /src
parent6cdf0399f3f2b7302a79f979cbe160531bd4049a (diff)
analyze: replace isempty()+ternary with strempty()
Diffstat (limited to 'src')
-rw-r--r--src/analyze/analyze.c14
1 files changed, 7 insertions, 7 deletions
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("<rect class=\"background\" width=\"100%%\" height=\"100%%\" />\n");
svg("<text x=\"20\" y=\"50\">%s</text>", pretty_times);
svg("<text x=\"20\" y=\"30\">%s %s (%s %s %s) %s %s</text>",
- 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("<g transform=\"translate(%.3f,100)\">\n", 20.0 + (SCALE_X * boot->firmware_time));
svg_graph_box(m, -(double) boot->firmware_time, boot->finish_time);