Change in osmo-el2tpd[master]: src/test_connect.c: fix compile with Werror

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/.

osmith gerrit-no-reply at lists.osmocom.org
Mon May 11 09:48:15 UTC 2020


osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-el2tpd/+/18198 )


Change subject: src/test_connect.c: fix compile with Werror
......................................................................

src/test_connect.c: fix compile with Werror

test_connect.c:50:2: error: format not a string literal and no format arguments [-Werror=format-security]
  printf(msgb_hexdump(msg));
  ^~~~~~

Change-Id: Ie0104649104ff31e180c05993e707c6629ddbf83
---
M src/test_connect.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-el2tpd refs/changes/98/18198/1

diff --git a/src/test_connect.c b/src/test_connect.c
index bc75950..38aa127 100644
--- a/src/test_connect.c
+++ b/src/test_connect.c
@@ -47,7 +47,7 @@
 	}
 	msgb_put(msg, rc);
 	printf("Recv data\n");
-	printf(msgb_hexdump(msg));
+	printf("%s", msgb_hexdump(msg));
 	printf("\n");
 
 	msgb_free(msg);

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-el2tpd/+/18198
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-el2tpd
Gerrit-Branch: master
Gerrit-Change-Id: Ie0104649104ff31e180c05993e707c6629ddbf83
Gerrit-Change-Number: 18198
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200511/0fa3e81f/attachment.htm>


More information about the gerrit-log mailing list