test: config: fix format specifier: uint32_t needs %u, not %hu

This commit is contained in:
Daniel Eklöf 2021-12-26 13:03:45 +01:00
parent 323f645bb2
commit 4986df7eeb
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -211,7 +211,7 @@ test_uint32(struct context *ctx, bool (*parse_fun)(struct context *ctx),
ctx->section, ctx->key, ctx->value);
}
if (*conf_ptr != input[i].value) {
BUG("[%s].%s=%s: set value (%hu) not the expected one (%hu)",
BUG("[%s].%s=%s: set value (%u) not the expected one (%u)",
ctx->section, ctx->key, ctx->value,
*conf_ptr, input[i].value);
}