[vte] table: Improve debug message
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] table: Improve debug message
- Date: Tue, 24 Oct 2017 08:39:32 +0000 (UTC)
commit 18962e5dd6e8ff293c0655f3df645f24ad4060eb
Author: Christian Persch <chpe src gnome org>
Date: Tue Oct 24 10:38:59 2017 +0200
table: Improve debug message
src/table.cc | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/table.cc b/src/table.cc
index 3c78f3a..85fa676 100644
--- a/src/table.cc
+++ b/src/table.cc
@@ -207,9 +207,14 @@ _vte_table_addi(struct _vte_table *table,
/* If this is the terminal node, set the result. */
if (length == 0) {
if (table->result != NULL)
- _vte_debug_print (VTE_DEBUG_PARSE,
- "`%s' and `%s' are indistinguishable.\n",
- table->result, result);
+ _VTE_DEBUG_IF (VTE_DEBUG_PARSE) {
+ g_printerr ("'%s'=> '%s'",
+ _vte_debug_sequence_to_string ((const char *)table->original),
+ table->result);
+ g_printerr (" and '%s' => '%s' are indistinguisable.\n",
+ _vte_debug_sequence_to_string ((const char *)original),
+ result);
+ }
table->result = g_intern_string(result);
if (table->original != NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]