X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fpanfrost%2Fpandecode%2Fpan_pretty_print.c;h=0f4183c48401853fc45543e04f6992f87134dcb4;hb=c3eae659e7b53534389f02a9bf74cdbaff2710d8;hp=c59bfa1da5a29fbea0085e7ea44f013363a96521;hpb=ec2a59cd7aa42652645e76e29a72335370c80e50;p=mesa.git diff --git a/src/panfrost/pandecode/pan_pretty_print.c b/src/panfrost/pandecode/pan_pretty_print.c index c59bfa1da5a..0f4183c4840 100644 --- a/src/panfrost/pandecode/pan_pretty_print.c +++ b/src/panfrost/pandecode/pan_pretty_print.c @@ -31,9 +31,9 @@ * the main driver */ #define DEFINE_CASE(name) case MALI_## name: return "MALI_" #name -char *pandecode_format_name(enum mali_format format) +char *pandecode_format(enum mali_format format) { - static char unk_format_str[5]; + static char unk_format_str[10]; switch (format) { DEFINE_CASE(RGB565); @@ -118,7 +118,7 @@ char *pandecode_format_name(enum mali_format format) DEFINE_CASE(RGBA8_2); DEFINE_CASE(RGB10_A2_2); default: - snprintf(unk_format_str, sizeof(unk_format_str), "0x%02x", format); + snprintf(unk_format_str, sizeof(unk_format_str), "MALI_0x%02x", format); return unk_format_str; } }