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

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