gdump: Fix print-format error while GFlagsValue->value is an unsigned int

This commit is contained in:
Rico Tzschichholz 2018-07-04 16:54:31 +02:00
parent 4dafb4d5cf
commit c704898e26

View File

@ -311,7 +311,7 @@ dump_flags_type (GType type, const char *symbol, GOutputStream *out)
{
GFlagsValue *value = &(klass->values[i]);
escaped_printf (out, " <member name=\"%s\" nick=\"%s\" value=\"%d\"/>\n",
escaped_printf (out, " <member name=\"%s\" nick=\"%s\" value=\"%u\"/>\n",
value->value_name, value->value_nick, value->value);
}
goutput_write (out, " </flags>\n");