if (!pgstat_is_kind_valid(kind))
{
- elog(WARNING, "invalid stats kind %d for entry of type %c",
+ elog(WARNING, "invalid stats kind %u for entry of type %c",
kind, t);
goto error;
}
if (!info->fixed_amount)
{
- elog(WARNING, "invalid fixed_amount in stats kind %d for entry of type %c",
+ elog(WARNING, "invalid fixed_amount in stats kind %u for entry of type %c",
kind, t);
goto error;
}
if (!read_chunk(fpin, ptr, info->shared_data_len))
{
- elog(WARNING, "could not read data of stats kind %d for entry of type %c with size %u",
+ elog(WARNING, "could not read data of stats kind %u for entry of type %c with size %u",
kind, t, info->shared_data_len);
goto error;
}
if (!pgstat_is_kind_valid(key.kind))
{
- elog(WARNING, "invalid stats kind for entry %d/%u/%u of type %c",
+ elog(WARNING, "invalid stats kind for entry %u/%u/%u of type %c",
key.kind, key.dboid, key.objoid, t);
goto error;
}
}
if (!read_chunk_s(fpin, &name))
{
- elog(WARNING, "could not read name of stats kind %d for entry of type %c",
+ elog(WARNING, "could not read name of stats kind %u for entry of type %c",
kind, t);
goto error;
}
if (!pgstat_is_kind_valid(kind))
{
- elog(WARNING, "invalid stats kind %d for entry of type %c",
+ elog(WARNING, "invalid stats kind %u for entry of type %c",
kind, t);
goto error;
}
if (!kind_info->from_serialized_name)
{
- elog(WARNING, "invalid from_serialized_name in stats kind %d for entry of type %c",
+ elog(WARNING, "invalid from_serialized_name in stats kind %u for entry of type %c",
kind, t);
goto error;
}
/* skip over data for entry we don't care about */
if (fseek(fpin, pgstat_get_entry_len(kind), SEEK_CUR) != 0)
{
- elog(WARNING, "could not seek \"%s\" of stats kind %d for entry of type %c",
+ elog(WARNING, "could not seek \"%s\" of stats kind %u for entry of type %c",
NameStr(name), kind, t);
goto error;
}
if (found)
{
dshash_release_lock(pgStatLocal.shared_hash, p);
- elog(WARNING, "found duplicate stats entry %d/%u/%u of type %c",
+ elog(WARNING, "found duplicate stats entry %u/%u/%u of type %c",
key.kind, key.dboid, key.objoid, t);
goto error;
}
pgstat_get_entry_data(key.kind, header),
pgstat_get_entry_len(key.kind)))
{
- elog(WARNING, "could not read data for entry %d/%u/%u of type %c",
+ elog(WARNING, "could not read data for entry %u/%u/%u of type %c",
key.kind, key.dboid, key.objoid, t);
goto error;
}