@@ -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