Merged 0003-Fixed-format-specifiers.patch by Matt Kern.
[apps/low-level-can-service.git] / tests / test_decode1.c
index 3f02745..b412ea8 100644 (file)
@@ -23,7 +23,7 @@ bool print_person(pb_istream_t *stream)
     /* Now the decoding is done, rest is just to print stuff out. */
 
     printf("name: \"%s\"\n", person.name);
-    printf("id: %d\n", person.id);
+    printf("id: %ld\n", (long)person.id);
     
     if (person.has_email)
         printf("email: \"%s\"\n", person.email);