diff options
author | Patrick McHardy <kaber@trash.net> | 2014-12-11 10:05:37 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2014-12-11 22:09:12 +0000 |
commit | 81cffc1ee5098809167085bc997297a61d7476bd (patch) | |
tree | 140d51471751d1439fb7a07bb6732b2f6764771d /src/datatype.c | |
parent | 736f31f9032e3d7d7410f7e75ca1f5937848b2d1 (diff) |
datatype: print datatype name in datatype_print() BUG message
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/datatype.c')
-rw-r--r-- | src/datatype.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/datatype.c b/src/datatype.c index 5599c597..4519d870 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, |