From: Xinhao Liu <liuxinhao5@xxxxxxxxxxxxx> Change %d printf fortmat to %u for unsigned int variant. Signed-off-by: Xinhao Liu <liuxinhao5@xxxxxxxxxxxxx> Signed-off-by: Wenpeng Liang <liangwenpeng@xxxxxxxxxx> --- providers/hns/hns_roce_u_verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/hns/hns_roce_u_verbs.c b/providers/hns/hns_roce_u_verbs.c index 382d2bd7..c0069b8b 100644 --- a/providers/hns/hns_roce_u_verbs.c +++ b/providers/hns/hns_roce_u_verbs.c @@ -73,7 +73,7 @@ int hns_roce_u_query_device(struct ibv_context *context, sub_minor = raw_fw_ver & 0xffff; snprintf(attr->orig_attr.fw_ver, sizeof(attr->orig_attr.fw_ver), - "%d.%d.%03d", major, minor, sub_minor); + "%u.%u.%03u", major, minor, sub_minor); return 0; } -- 2.33.0