GNOME Bugzilla – Bug 742180
command: Also debug-print the values of the query
Last modified: 2015-01-25 09:07:37 UTC
This is quite useful when debugging what is going on with a query.
Created attachment 293559 [details] [review] command: Also debug-print the values of the query This is quite useful when debugging what is going on with a query.
Review of attachment 293559 [details] [review]: ::: gom/gom-command.c @@ +352,3 @@ + if (G_VALUE_HOLDS_BOOLEAN(v)) { + gboolean b = g_value_get_boolean(v); + g_print("%d", b); g_print("%s", b ? "TRUE" : "FALSE"); @@ +358,3 @@ + } else if (G_VALUE_HOLDS_INT64(v)) { + gint i = g_value_get_int64(v); + g_print("%d", i); Use G_GINT64_FORMAT, not "d". @@ +363,3 @@ + g_print("'%s'", s); + } else if (G_VALUE_HOLDS_UCHAR(v)) { + guint8 i = g_value_get_uchar(v); guchar i =... @@ +364,3 @@ + } else if (G_VALUE_HOLDS_UCHAR(v)) { + guint8 i = g_value_get_uchar(v); + g_print("%d", i); "%c" for unsigned char. @@ +367,3 @@ + } else if (G_VALUE_HOLDS_UINT(v)) { + guint i = g_value_get_uint(v); + g_print("%d", i); "%u"
Created attachment 294773 [details] [review] command: Also debug-print the values of the query This is quite useful when debugging what is going on with a query.
Review of attachment 294773 [details] [review]: Looks fine.
Attachment 294773 [details] pushed as ca03725 - command: Also debug-print the values of the query