{"action":"created","issue":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/1891","repository_url":"https://api.github.com/repos/RIOT-OS/RIOT","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/1891/labels{/name}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/1891/comments","events_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/1891/events","html_url":"https://github.com/RIOT-OS/RIOT/issues/1891","id":47019603,"number":1891,"title":"Printf formatting does not work properly on iot-lab_M3 for 64 bit numbers.","user":{"login":"authmillenon","id":675644,"avatar_url":"https://avatars.githubusercontent.com/u/675644?v=3","gravatar_id":"","url":"https://api.github.com/users/authmillenon","html_url":"https://github.com/authmillenon","followers_url":"https://api.github.com/users/authmillenon/followers","following_url":"https://api.github.com/users/authmillenon/following{/other_user}","gists_url":"https://api.github.com/users/authmillenon/gists{/gist_id}","starred_url":"https://api.github.com/users/authmillenon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/authmillenon/subscriptions","organizations_url":"https://api.github.com/users/authmillenon/orgs","repos_url":"https://api.github.com/users/authmillenon/repos","events_url":"https://api.github.com/users/authmillenon/events{/privacy}","received_events_url":"https://api.github.com/users/authmillenon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"thomaseichinger","id":56618,"avatar_url":"https://avatars.githubusercontent.com/u/56618?v=3","gravatar_id":"","url":"https://api.github.com/users/thomaseichinger","html_url":"https://github.com/thomaseichinger","followers_url":"https://api.github.com/users/thomaseichinger/followers","following_url":"https://api.github.com/users/thomaseichinger/following{/other_user}","gists_url":"https://api.github.com/users/thomaseichinger/gists{/gist_id}","starred_url":"https://api.github.com/users/thomaseichinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomaseichinger/subscriptions","organizations_url":"https://api.github.com/users/thomaseichinger/orgs","repos_url":"https://api.github.com/users/thomaseichinger/repos","events_url":"https://api.github.com/users/thomaseichinger/events{/privacy}","received_events_url":"https://api.github.com/users/thomaseichinger/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones/13","html_url":"https://github.com/RIOT-OS/RIOT/milestones/Release%202016.04","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones/13/labels","id":1447832,"number":13,"title":"Release 2016.04","description":"The next major release.","creator":{"login":"OlegHahm","id":1590423,"avatar_url":"https://avatars.githubusercontent.com/u/1590423?v=3","gravatar_id":"","url":"https://api.github.com/users/OlegHahm","html_url":"https://github.com/OlegHahm","followers_url":"https://api.github.com/users/OlegHahm/followers","following_url":"https://api.github.com/users/OlegHahm/following{/other_user}","gists_url":"https://api.github.com/users/OlegHahm/gists{/gist_id}","starred_url":"https://api.github.com/users/OlegHahm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlegHahm/subscriptions","organizations_url":"https://api.github.com/users/OlegHahm/orgs","repos_url":"https://api.github.com/users/OlegHahm/repos","events_url":"https://api.github.com/users/OlegHahm/events{/privacy}","received_events_url":"https://api.github.com/users/OlegHahm/received_events","type":"User","site_admin":false},"open_issues":54,"closed_issues":464,"state":"open","created_at":"2015-12-07T14:56:18Z","updated_at":"2016-04-14T14:03:18Z","due_on":"2016-04-14T22:00:00Z","closed_at":null},"comments":32,"created_at":"2014-10-28T12:23:40Z","updated_at":"2016-04-14T14:04:10Z","closed_at":null,"body":"Possibly other boards are effected, too. Compare the following program\r\n\r\n```C\r\n#include <stdio.h>\r\n#include <inttypes.h>\r\n\r\nint main(void)\r\n{\r\n    uint64_t test = 0xabcdef0123456789;\r\n\r\n    printf(\"%llx\\n\", test);\r\n    printf(\"%lx\\n\", test);\r\n    printf(\"%\" PRIx64 \"\\n\", test);\r\n\r\n    return 0;\r\n}\r\n```\r\n\r\non iot-lab_M3\r\n\r\n```\r\n2014-10-28 13:15:00,163 - INFO # kernel_init(): This is RIOT! (Version: 2014.05-1144-gd91ec-beutlin-od)\r\n2014-10-28 13:15:00,165 - INFO # kernel_init(): jumping into first task...\r\n2014-10-28 13:15:00,166 - INFO # lx\r\n2014-10-28 13:15:00,166 - INFO # a\r\n2014-10-28 13:15:00,166 - INFO # lx\r\n```\r\n\r\non native\r\n\r\n```\r\nkernel_init(): This is RIOT! (Version: 2014.05-1145-ga2223-beutlin-od)\r\nkernel_init(): jumping into first task...\r\nabcdef0123456789\r\n23456789\r\nabcdef0123456789\r\n```\r\n\r\nand on msba2\r\n\r\n```\r\n2014-10-28 13:15:00,163 - INFO # kernel_init(): This is RIOT! (Version: 2014.05-1144-gd91ec-beutlin-od)\r\n2014-10-28 13:15:00,165 - INFO # kernel_init(): jumping into first task...\r\n2014-10-28 13:15:00,166 - INFO # abcdef0123456789\r\n2014-10-28 13:15:00,166 - INFO # 23456789\r\n2014-10-28 13:15:00,166 - INFO # abcdef0123456789\r\n```"},"comment":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/comments/209958827","html_url":"https://github.com/RIOT-OS/RIOT/issues/1891#issuecomment-209958827","issue_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/1891","id":209958827,"user":{"login":"cgundogan","id":739129,"avatar_url":"https://avatars.githubusercontent.com/u/739129?v=3","gravatar_id":"","url":"https://api.github.com/users/cgundogan","html_url":"https://github.com/cgundogan","followers_url":"https://api.github.com/users/cgundogan/followers","following_url":"https://api.github.com/users/cgundogan/following{/other_user}","gists_url":"https://api.github.com/users/cgundogan/gists{/gist_id}","starred_url":"https://api.github.com/users/cgundogan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgundogan/subscriptions","organizations_url":"https://api.github.com/users/cgundogan/orgs","repos_url":"https://api.github.com/users/cgundogan/repos","events_url":"https://api.github.com/users/cgundogan/events{/privacy}","received_events_url":"https://api.github.com/users/cgundogan/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T14:04:10Z","updated_at":"2016-04-14T14:04:10Z","body":"AFAIK, all those `printfs` that use `PRIu8` should be broken (untested).\r\n\r\n```\r\n[cnk@think] ~/riotos/RIOT % gg PRIu8                                                                                                                                     [master]\r\nsys/net/gnrc/application_layer/zep/gnrc_zep.c:    DEBUG(\"zep: initialized radio parameters: chan: %\" PRIu8 \", pan: 0x%04\" PRIx16\r\nsys/net/gnrc/application_layer/zep/gnrc_zep.c:            DEBUG(\"zep: malconfigured version: %\" PRIu8 \"\\n\", dev->version);\r\nsys/net/gnrc/netif/hdr/gnrc_netif_hdr_print.c:    printf(\"rssi: %\" PRIu8 \"  \", hdr->rssi);\r\nsys/net/gnrc/netif/hdr/gnrc_netif_hdr_print.c:    printf(\"lqi: %\" PRIu8 \"\\n\", hdr->lqi);\r\nsys/net/gnrc/network_layer/icmpv6/echo/gnrc_icmpv6_echo.c:    DEBUG(\"icmpv6_echo: Building echo message with type=%\" PRIu8 \"id=%\" PRIu16\r\nsys/net/gnrc/network_layer/ipv6/ext/gnrc_ipv6_ext.c:                    DEBUG(\"ipv6_ext: next header = %\" PRIu8 \"\\n\", nh);\r\nsys/net/gnrc/network_layer/ipv6/ext/gnrc_ipv6_ext.c:            DEBUG(\"ipv6_ext: next header = %\" PRIu8 \"\\n\", nh);\r\nsys/net/gnrc/network_layer/ipv6/ext/gnrc_ipv6_ext.c:            DEBUG(\"ipv6_ext: unknown next header: %\" PRIu8 \"\\n\", nh);\r\nsys/net/gnrc/network_layer/ipv6/nc/gnrc_ipv6_nc.c:/* For PRIu8 etc. */\r\nsys/net/gnrc/network_layer/ipv6/nc/gnrc_ipv6_nc.c:        DEBUG(\"ipv6_nc: Set remaining probes to %\" PRIu8 \"\\n\", (uint8_t) GNRC_NDP_MAX_MC_NBR_SOL_NUMOF);\r\nsys/net/gnrc/network_layer/ipv6/netif/gnrc_ipv6_netif.c:        DEBUG(\"ipv6 netif: couldn't add %s/%\" PRIu8 \" to interface %\" PRIkernel_pid \"\\n: No space left.\",\r\nsys/net/gnrc/network_layer/ipv6/netif/gnrc_ipv6_netif.c:    DEBUG(\"ipv6 netif: Added %s/%\" PRIu8 \" to interface %\" PRIkernel_pid \"\\n\",\r\nsys/net/gnrc/network_layer/ipv6/netif/gnrc_ipv6_netif.c:        DEBUG(\"%s by %\" PRIu8 \" bits (used as source address = %s)\\n\",\r\nsys/net/gnrc/network_layer/ipv6/netif/gnrc_ipv6_netif.c:        DEBUG(\"%s by %\" PRIu8 \" bits\\n\",\r\nsys/net/gnrc/network_layer/ndp/gnrc_ndp.c:/* For PRIu8 etc. */\r\nsys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c:            DEBUG(\"PROBE (probe with %\" PRIu8 \" unicast NS every %\" PRIu32 \" us)\\n\",\r\nsys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c:        DEBUG(\" - PIO for %s/%\" PRIu8 \"\\n\", ipv6_addr_to_str(addr_str, &addr->addr,\r\nsys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c:                  PRIu8 \"\\n\", icmpv6_type);\r\nsys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c:                  PRIu8 \"\\n\", icmpv6_type);\r\nsys/net/gnrc/network_layer/sixlowpan/ctx/gnrc_sixlowpan_ctx.c:        DEBUG(\"6lo ctx: found context (%u, %s/%\" PRIu8 \") \",\r\nsys/net/gnrc/network_layer/sixlowpan/ctx/gnrc_sixlowpan_ctx.c:        DEBUG(\"6lo ctx: found context (%u, %s/%\" PRIu8 \")\\n\", id,\r\nsys/net/gnrc/network_layer/sixlowpan/ctx/gnrc_sixlowpan_ctx.c:    DEBUG(\"6lo ctx: update context (%u, %s/%\" PRIu8 \"), lifetime: %\" PRIu16 \" min\\n\",\r\nsys/net/gnrc/network_layer/sixlowpan/frag/gnrc_sixlowpan_frag.c:          \"datagram tag: %\" PRIu16 \", offset: %\" PRIu8 \" (%u bytes), \"\r\nsys/net/network_layer/ipv6/hdr/ipv6_hdr_print.c:        printf(\"illegal version field: %\" PRIu8 \"\\n\", ipv6_hdr_get_version(hdr));\r\nsys/net/network_layer/ipv6/hdr/ipv6_hdr_print.c:    printf(\"length: %\" PRIu16 \"  next header: %\" PRIu8 \"  hop limit: %\" PRIu8 \"\\n\",\r\nsys/net/network_layer/sixlowpan/sixlowpan_print.c:        printf(\"offset: 0x%\" PRIu8 \"\\n\", hdr->offset);\r\nsys/shell/commands/sc_gnrc_6ctx.c:            printf(\" %2\" PRIu8 \"|%39s/%-3\" PRIu8 \"|%\" PRIx8 \"|%5\" PRIu16 \" min\\n\", i,\r\ntests/conn_ip/ip.c:    printf(\"Success: started IP server on protocol %\" PRIu8 \"\\n\", protocol);\r\ntests/conn_ip/ip.c:            printf(\"Success: send %u byte to %s (next header: %\" PRIu8 \")\\n\",\r\ntests/driver_mpu9150/main.c:    printf(\"Compass sample rate: %\"PRIu8\" Hz\\n\", dev.conf.compass_sample_rate);\r\ntests/driver_mpu9150/main.c:    printf(\"Compass X axis factory adjustment: %\"PRIu8\"\\n\", dev.conf.compass_x_adj);\r\ntests/driver_mpu9150/main.c:    printf(\"Compass Y axis factory adjustment: %\"PRIu8\"\\n\", dev.conf.compass_y_adj);\r\ntests/driver_mpu9150/main.c:    printf(\"Compass Z axis factory adjustment: %\"PRIu8\"\\n\", dev.conf.compass_z_adj);\r\n```"}}