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

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