[gnome-builder/wip/highlight] highlight: use formatted size in dump to stderr
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/highlight] highlight: use formatted size in dump to stderr
- Date: Thu, 26 Mar 2015 22:14:07 +0000 (UTC)
commit 078fcfab16d0f667d0012ef2f7aea00700a12801
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]