1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

demo: fix printf handling

This commit is contained in:
Christian Mehlis 2014-01-18 01:15:29 +01:00
parent dfc87026d7
commit a4f1dc464a
4 changed files with 5 additions and 5 deletions

View File

@ -70,7 +70,7 @@ void rpl_udp_monitor(void)
}
else if (m.type == IPV6_PACKET_RECEIVED) {
ipv6_buf = (ipv6_hdr_t*) m.content.ptr;
printf("IPv& datagram received (next header: %02X)", ipv6_buf->nextheader);
printf("IPv6 datagram received (next header: %02X)", ipv6_buf->nextheader);
printf(" from %s ", ipv6_addr_to_str(addr_str, &ipv6_buf->srcaddr));
if (ipv6_buf->nextheader == IPV6_PROTO_NUM_ICMPV6) {
icmpv6_buf = (icmpv6_hdr_t*) &ipv6_buf[(LL_HDR_LEN + IPV6_HDR_LEN) + ipv6_ext_hdr_len];

View File

@ -171,7 +171,7 @@ void rpl_udp_dodag(char *unused)
if (mydodag == NULL) {
printf("Not part of a dodag\n");
printf("---------------------------$\n");
printf("---------------------------\n");
return;
}
@ -182,5 +182,5 @@ void rpl_udp_dodag(char *unused)
printf("my preferred parent:\n");
printf("%s\n", ipv6_addr_to_str(addr_str, (&mydodag->my_preferred_parent->addr)));
}
printf("---------------------------$\n");
printf("---------------------------\n");
}

View File

@ -25,7 +25,7 @@ void udp_server(char *unused)
{
(void) unused;
int udp_server_thread_pid = thread_create(udp_server_stack_buffer, KERNEL_CONF_STACKSIZE_MAIN, PRIORITY_MAIN, CREATE_STACKTEST, init_udp_server, "init_udp_server");
printf("UDP SERVER THREAD PID: %i\n", udp_server_thread_pid);
printf("UDP SERVER ON PORT %d (THREAD PID: %d)\n", HTONS(SERVER_PORT), udp_server_thread_pid);
}
void init_udp_server(void)

View File

@ -36,7 +36,7 @@ char tcp_timer_stack[TCP_TIMER_STACKSIZE];
int destiny_init_transport_layer(void)
{
printf("Initializing transport layer packages. Size of socket_type: %u\n",
printf("Initializing transport layer packages. Size of socket_type: %zu\n",
sizeof(socket_internal_t));
/* SOCKETS */
memset(sockets, 0, MAX_SOCKETS * sizeof(socket_internal_t));