diff --git a/Userland/Libraries/LibGfx/ICCProfile.h b/Userland/Libraries/LibGfx/ICCProfile.h index 954461e293..2b787c4264 100644 --- a/Userland/Libraries/LibGfx/ICCProfile.h +++ b/Userland/Libraries/LibGfx/ICCProfile.h @@ -114,7 +114,7 @@ URL device_model_url(DeviceModel); TAG(viewingCondDescTag, 0x76756564 /* 'vued' */) \ TAG(viewingConditionsTag, 0x76696577 /* 'view' */) -#define TAG(name, id) constexpr TagSignature name { id }; +#define TAG(name, id) constexpr inline TagSignature name { id }; ENUMERATE_TAG_SIGNATURES(TAG) #undef TAG diff --git a/Userland/Utilities/icc.cpp b/Userland/Utilities/icc.cpp index 57c338813f..c965ba0d18 100644 --- a/Userland/Utilities/icc.cpp +++ b/Userland/Utilities/icc.cpp @@ -93,7 +93,11 @@ ErrorOr serenity_main(Main::Arguments arguments) outln("tags:"); HashMap tag_data_to_first_signature; profile->for_each_tag([&tag_data_to_first_signature](auto tag_signature, auto tag_data) { - outln("{}: {}, offset {}, size {}", tag_signature, tag_data->type(), tag_data->offset(), tag_data->size()); + if (auto name = tag_signature_spec_name(tag_signature); name.has_value()) + out("{} ({}): ", *name, tag_signature); + else + out("Unknown tag ({}): ", tag_signature); + outln("type {}, offset {}, size {}", tag_data->type(), tag_data->offset(), tag_data->size()); // Print tag data only the first time it's seen. // (Different sigatures can refer to the same data.)