From 8e1b598c8ae408f0dd15a4460920a4d82eb05a27 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Mon, 13 Mar 2017 17:36:36 +0100 Subject: milenage_test: cosmetic fix: shown value is not SEQ.MS In the milenage_test, the console output printed "SEQ.MS = 33", but 33 is a) the SQN, not SEQ; b) the SQN *after* the next auth generation, i.e. SQN.MS would have been 31. While at it also use the proper PRIu64 from inttypes.h to output the sqn value. This prepares for upcoming sparation of SQN incrementing by SEQ and IND, particularly to clearly show where the changes in auth/milenage_test's expectations originate. Related: OS#1968 Change-Id: Ie83201f1362f3d793ada774f3fc5f89cc0b3fbb7 --- tests/auth/milenage_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/auth/milenage_test.c') diff --git a/tests/auth/milenage_test.c b/tests/auth/milenage_test.c index 473be92a..187b9adb 100644 --- a/tests/auth/milenage_test.c +++ b/tests/auth/milenage_test.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include @@ -93,7 +94,8 @@ int main(int argc, char **argv) if (rc < 0) { printf("AUTS failed\n"); } else { - printf("AUTS success: SEQ.MS = %llu\n", (unsigned long long)test_aud.u.umts.sqn); + printf("AUTS success: tuple generated with SQN = %" PRIu64 "\n", + test_aud.u.umts.sqn); } opc_test(&test_aud); -- cgit v1.2.3