[gnome-builder] highlight: use formatted size in dump to stderr
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] highlight: use formatted size in dump to stderr
- Date: Fri, 27 Mar 2015 00:39:15 +0000 (UTC)
commit cabc3e46309e882d63f68930b2ce3aa163485b43
Author: Christian Hergert <christian hergert me>
Date: Thu Mar 26 15:10:20 2015 -0700
highlight: use formatted size in dump to stderr
libide/ide-highlight-index.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/libide/ide-highlight-index.c b/libide/ide-highlight-index.c
index 261c253..ee8b445 100644
--- a/libide/ide-highlight-index.c
+++ b/libide/ide-highlight-index.c
@@ -114,10 +114,14 @@ ide_highlight_index_unref (IdeHighlightIndex *self)
void
ide_highlight_index_dump (IdeHighlightIndex *self)
{
+ g_autofree gchar *format = NULL;
+
g_assert (self);
+ format = g_format_size (self->chunk_size);
+
g_printerr ("IdeHighlightIndex at %p\n"
" Number of items in Index: %u\n"
- " String Chunk Size (Estimate): %"G_GSIZE_FORMAT"\n",
- self, self->count, self->chunk_size);
+ " String Chunk Size (Estimate): %s\n",
+ self, self->count, format);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]