Drop ARGTYPE_UNKNOWN, use guess_lens instead
diff --git a/lens_default.c b/lens_default.c
index 2693734..e55aae6 100644
--- a/lens_default.c
+++ b/lens_default.c
@@ -319,10 +319,6 @@
case ARGTYPE_VOID:
return fprintf(stream, "<void>");
- case ARGTYPE_UNKNOWN:
- return format_integer(stream, value, INT_FMT_unknown,
- arguments);
-
case ARGTYPE_SHORT:
case ARGTYPE_INT:
case ARGTYPE_LONG:
@@ -421,3 +417,16 @@
struct lens hex_lens = {
.format_cb = hex_lens_format_cb,
};
+
+
+static int
+guess_lens_format_cb(struct lens *lens, FILE *stream,
+ struct value *value, struct value_dict *arguments)
+{
+ return toplevel_format_lens(lens, stream, value, arguments,
+ INT_FMT_unknown);
+}
+
+struct lens guess_lens = {
+ .format_cb = guess_lens_format_cb,
+};