Blame SOURCES/open-lldp-v1.0.1-16-VDP-Fixed-DBG-print-compile-errors-in-32-bit-systems.patch

89f6b3
From b6c5d86ea57594893d4fd95a0bf8043c45c953a4 Mon Sep 17 00:00:00 2001
89f6b3
From: Paddu Krishnan <padkrish@cisco.com>
89f6b3
Date: Wed, 21 Jan 2015 03:42:01 +0000
89f6b3
Subject: [PATCH] VDP: Fixed DBG print compile errors in 32-bit systems
89f6b3
89f6b3
Signed-off-by: Paddu Krishnan <padkrish@cisco.com>
89f6b3
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
89f6b3
---
89f6b3
 qbg/vdp22cisco_oui.c | 6 +++---
89f6b3
 1 file changed, 3 insertions(+), 3 deletions(-)
89f6b3
89f6b3
diff --git a/qbg/vdp22cisco_oui.c b/qbg/vdp22cisco_oui.c
89f6b3
index e8a824c..272d480 100644
89f6b3
--- a/qbg/vdp22cisco_oui.c
89f6b3
+++ b/qbg/vdp22cisco_oui.c
89f6b3
@@ -92,7 +92,7 @@ bool cisco_str2vdpnl_hndlr(struct vdpnl_oui_data_s *vdp_oui_p, char *token)
89f6b3
 			strncpy(vdp_cisco_oui_p->vm_name, token, data_len);
89f6b3
 			vdp_cisco_oui_p->vm_name[data_len] = '\0';
89f6b3
 			vdp_cisco_oui_p->vm_name_len = data_len;
89f6b3
-			LLDPAD_DBG("Name %s Len %ld\n",
89f6b3
+			LLDPAD_DBG("Name %s Len %zu\n",
89f6b3
 				   vdp_cisco_oui_p->vm_name,
89f6b3
 				   vdp_cisco_oui_p->vm_name_len);
89f6b3
 			break;
89f6b3
@@ -364,7 +364,7 @@ static inline size_t cisco_vdp22_gen_l3addr(char unsigned *cp, size_t offset,
89f6b3
 		offset += oui_append_4o(cp + offset, 0);
89f6b3
 		LLDPAD_ERR("%s: Not supported for now\n", __func__);
89f6b3
 	}
89f6b3
-	LLDPAD_DBG("%s: Valid VM Addr offset %ld\n", __func__, offset);
89f6b3
+	LLDPAD_DBG("%s: Valid VM Addr offset %zu\n", __func__, offset);
89f6b3
 	return offset;
89f6b3
 }
89f6b3
 
89f6b3
@@ -395,7 +395,7 @@ static inline size_t cisco_vdp22_gen_vmname(char unsigned *cp, size_t offset,
89f6b3
 	offset += oui_append_nb(cp + offset,
89f6b3
 				(char unsigned *)vdp_cisco_oui_str->vm_name,
89f6b3
 				vdp_cisco_oui_str->vm_name_len);
89f6b3
-	LLDPAD_DBG("%s: Valid VM Name offset %ld\n", __func__, offset);
89f6b3
+	LLDPAD_DBG("%s: Valid VM Name offset %zu\n", __func__, offset);
89f6b3
 	return offset;
89f6b3
 }
89f6b3
 
89f6b3
-- 
89f6b3
2.1.0
89f6b3