[riot-notifications] [RIOT-OS/RIOT] sys: add riot_hdr module (#10253)

Martine Lenders notifications at github.com
Tue Nov 27 20:18:17 CET 2018


miri64 commented on this pull request.



> +#else
+#include <stdio.h>
+#define LOG_INFO(...) printf(__VA_ARGS__)
+#endif
+
+#include "riot_hdr.h"
+#include "checksum/fletcher32.h"
+#include "byteorder.h"
+
+#if __BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__
+#   error "This code is implementented in a way that it will only work for little-endian systems!"
+#endif
+
+void riot_hdr_print(const riot_hdr_t *riot_hdr)
+{
+    printf("Image magic_number: 0x%08x\n", (unsigned)riot_hdr->magic_number);

[`printf()` requires `<stdio.h>`](https://ci.riot-os.org/RIOT-OS/RIOT/10253/e03b1855225192251e1a6ff16dd086f05829f660/output/compile/tests/riot_hdr/esp32-olimex-evb:gnu.txt) ;-) 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10253#pullrequestreview-178962556
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20181127/8588d6a4/attachment.html>


More information about the notifications mailing list