Skip to content

Commit c1f705f

Browse files
committed
parser lyb BUGFIX use proper print macros
1 parent d7a3f9f commit c1f705f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/parser_lyb.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,7 @@ lyb_parse_header(struct lylyb_parse_ctx *lybctx)
15121512
byte = 0;
15131513
lyb_read(&byte, LYB_HEADER_VERSION_BITS, lybctx);
15141514
if (byte != LYB_HEADER_VERSION_NUM) {
1515-
LOGERR(lybctx->ctx, LY_EINVAL, "Invalid LYB format version \"0x%x\", expected \"0x%x\".",
1515+
LOGERR(lybctx->ctx, LY_EINVAL, "Invalid LYB format version \"0x%" PRIx8 "\", expected \"0x%x\".",
15161516
byte, LYB_HEADER_VERSION_NUM);
15171517
return LY_EINVAL;
15181518
}
@@ -1521,7 +1521,7 @@ lyb_parse_header(struct lylyb_parse_ctx *lybctx)
15211521
byte = 0;
15221522
lyb_read(&byte, LYB_HEADER_HASH_ALG_BITS, lybctx);
15231523
if (byte != LYB_HEADER_HASH_ALG_NUM) {
1524-
LOGERR(lybctx->ctx, LY_EINVAL, "Different LYB format hash algorithm \"0x%x\" used, expected \"0x%x\".",
1524+
LOGERR(lybctx->ctx, LY_EINVAL, "Different LYB format hash algorithm \"0x%" PRIx8 "\" used, expected \"0x%x\".",
15251525
byte, LYB_HEADER_HASH_ALG_NUM);
15261526
return LY_EINVAL;
15271527
}
@@ -1548,7 +1548,7 @@ lyb_parse_header(struct lylyb_parse_ctx *lybctx)
15481548

15491549
if (data_hash != cur_hash) {
15501550
LOGERR(lybctx->ctx, LY_EINVAL, "Different current LYB context modules hash compared to the one stored in the "
1551-
"LYB data (0x%x != 0x%x).", data_hash, cur_hash);
1551+
"LYB data (0x%" PRIx32 " != 0x%" PRIx32 ").", data_hash, cur_hash);
15521552
return LY_EINVAL;
15531553
}
15541554
}

0 commit comments

Comments
 (0)