diff mbox

[3/3] datatype: print datatype name in datatype_print() BUG message

Message ID 1418336474-25567-3-git-send-email-kaber@trash.net
State Accepted
Delegated to: Pablo Neira
Headers show

Commit Message

Patrick McHardy Dec. 11, 2014, 10:21 p.m. UTC
Signed-off-by: Patrick McHardy <kaber@trash.net>
---
 src/datatype.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/src/datatype.c b/src/datatype.c
index 5599c59..4519d87 100644
--- a/src/datatype.c
+++ b/src/datatype.c
@@ -87,7 +87,8 @@  void datatype_print(const struct expr *expr)
 			return symbolic_constant_print(dtype->sym_tbl, expr);
 	} while ((dtype = dtype->basetype));
 
-	BUG("datatype has no print method or symbol table\n");
+	BUG("datatype %s has no print method or symbol table\n",
+	    expr->dtype->name);
 }
 
 struct error_record *symbol_parse(const struct expr *sym,