[ovs-dev] [PATCH] tests: switch from signed to unsigned when formatting

Alin Serdean aserdean at cloudbasesolutions.com
Tue Jun 20 19:44:42 UTC 2017


x->errline is a signed int
(https://github.com/openvswitch/ovs/blob/934386dd129a3f15b2546562a775f2f43dd3aac6/tests/test-sflow.c#L88)
Flagged by static code analysis.

Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
---
 tests/test-sflow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test-sflow.c b/tests/test-sflow.c
index 6125d38..039a1b1 100644
--- a/tests/test-sflow.c
+++ b/tests/test-sflow.c
@@ -675,7 +675,7 @@ print_sflow(struct ofpbuf *buf)
         process_datagram(x);
     } else {
         // CATCH
-        printf("\n>>>>> ERROR in " __FILE__ " at line %u\n", x->errline);
+        printf("\n>>>>> ERROR in " __FILE__ " at line %d\n", x->errline);
     }
 }
 
-- 
2.10.2.windows.1


More information about the dev mailing list