summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-11-02 14:46:06 +0000
committerRichard Hughes <richard@hughsie.com>2016-11-02 14:46:06 +0000
commit927d4d3856b914511f5a52114c583c5d35c643f4 (patch)
tree11acf847634a0a305659fee62fd6c71f97b67c70
parent2ed1383c7940f17d63384a43f96623390eb8d030 (diff)
downloadappstream-glib-927d4d3856b914511f5a52114c583c5d35c643f4.tar.gz
trivial: Output profiling infomation to stderr
-rw-r--r--libappstream-glib/as-profile.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libappstream-glib/as-profile.c b/libappstream-glib/as-profile.c
index 034d730..d5b5ab5 100644
--- a/libappstream-glib/as-profile.c
+++ b/libappstream-glib/as-profile.c
@@ -151,17 +151,17 @@ as_profile_dump_safe (AsProfile *profile)
bar_offset = (guint) (scale * (gdouble) (item->time_start -
time_start) / 1000);
for (j = 0; j < bar_offset; j++)
- g_print (" ");
+ g_printerr (" ");
bar_length = (guint) (scale * (gdouble) time_ms);
if (bar_length == 0)
bar_length = 1;
for (j = 0; j < bar_length; j++)
- g_print ("#");
+ g_printerr ("#");
for (j = bar_offset + bar_length; j < console_width + 1; j++)
- g_print (" ");
- g_print ("@%04" G_GINT64_FORMAT "ms ",
- (item->time_stop - time_start) / 1000);
- g_print ("%s %" G_GINT64_FORMAT "ms\n", item->id, time_ms);
+ g_printerr (" ");
+ g_printerr ("@%04" G_GINT64_FORMAT "ms ",
+ (item->time_stop - time_start) / 1000);
+ g_printerr ("%s %" G_GINT64_FORMAT "ms\n", item->id, time_ms);
}
/* not all complete */
@@ -172,8 +172,8 @@ as_profile_dump_safe (AsProfile *profile)
for (j = 0; j < console_width; j++)
g_print ("$");
time_ms = (item->time_stop - item->time_start) / 1000;
- g_print (" @????ms %s %" G_GINT64_FORMAT "ms\n",
- item->id, time_ms);
+ g_printerr (" @????ms %s %" G_GINT64_FORMAT "ms\n",
+ item->id, time_ms);
}
}
}