[vte] emulation: Improve debug output
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] emulation: Improve debug output
- Date: Sat, 28 Nov 2015 22:00:11 +0000 (UTC)
commit 8d9644f127cc166ee5c018fe3bbfc7647897501d
Author: Christian Persch <chpe gnome org>
Date: Sat Nov 28 22:58:33 2015 +0100
emulation: Improve debug output
Print the value type of the parameters, too.
src/vteseq.cc | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/vteseq.cc b/src/vteseq.cc
index 7383e13..69c76b0 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -52,15 +52,15 @@ display_control_sequence(const char *name, GValueArray *params)
}
if (G_VALUE_HOLDS_LONG(value)) {
l = g_value_get_long(value);
- g_printerr("%ld", l);
+ g_printerr("LONG(%ld)", l);
} else
if (G_VALUE_HOLDS_STRING(value)) {
s = g_value_get_string(value);
- g_printerr("\"%s\"", s);
+ g_printerr("STRING(\"%s\")", s);
} else
if (G_VALUE_HOLDS_POINTER(value)) {
w = (const gunichar *)g_value_get_pointer(value);
- g_printerr("\"%ls\"", (const wchar_t*) w);
+ g_printerr("WSTRING(\"%ls\")", (const wchar_t*) w);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]