[PATCH] osmo-ggsn[master]: sgsnemu: Remove dead code: encaps_printf()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sat Oct 14 14:39:18 UTC 2017


Review at  https://gerrit.osmocom.org/4269

sgsnemu: Remove dead code: encaps_printf()

This function is never used/called, remove it.

Change-Id: I37a447e4d5387e3fc5f4433ab20ceba7c446684b
---
M sgsnemu/sgsnemu.c
1 file changed, 0 insertions(+), 13 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/69/4269/1

diff --git a/sgsnemu/sgsnemu.c b/sgsnemu/sgsnemu.c
index 7b7bb4e..50eca63 100644
--- a/sgsnemu/sgsnemu.c
+++ b/sgsnemu/sgsnemu.c
@@ -955,19 +955,6 @@
 
 }
 
-static int encaps_printf(struct pdp_t *pdp, void *pack, unsigned len)
-{
-	unsigned int i;
-	printf("The packet looks like this:\n");
-	for (i = 0; i < len; i++) {
-		printf("%02x ", (unsigned char)*(char *)(pack + i));
-		if (!((i + 1) % 16))
-			printf("\n");
-	};
-	printf("\n");
-	return 0;
-}
-
 /* read a single value from a /procc file, up to 255 bytes, callee-allocated */
 static char *proc_read(const char *path)
 {

-- 
To view, visit https://gerrit.osmocom.org/4269
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I37a447e4d5387e3fc5f4433ab20ceba7c446684b
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list