Make "bad type" output more useful.

Print the four (assumes non-v6) values in hex rather than "bad type".
This commit is contained in:
Bill Currie 2011-03-17 20:35:14 +09:00
parent ebfbd7c358
commit f20424afe5

View file

@ -661,7 +661,10 @@ value_string (progs_t *pr, etype_t type, pr_type_t *val)
dsprintf (line, "%d", val->integer_var);
break;
default:
dsprintf (line, "bad type %i", type);
//dsprintf (line, "bad type %i", type);
dsprintf (line, "<%x %x %x %x>",
val[0].integer_var, val[1].integer_var,
val[2].integer_var, val[3].integer_var);
break;
}