mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
tests: use global gnrc_pktdump_pid
This commit is contained in:
parent
bf1af5953f
commit
047fd79ae6
@ -36,7 +36,7 @@ int main(void)
|
||||
|
||||
/* register the pktdump thread */
|
||||
puts("Register the packet dump thread for GNRC_NETTYPE_UNDEF packets");
|
||||
dump.pid = gnrc_pktdump_getpid();
|
||||
dump.pid = gnrc_pktdump_pid;
|
||||
dump.demux_ctx = GNRC_NETREG_DEMUX_CTX_ALL;
|
||||
gnrc_netreg_register(GNRC_NETTYPE_UNDEF, &dump);
|
||||
|
||||
|
@ -32,7 +32,7 @@ int main(void)
|
||||
|
||||
/* register the pktdump thread */
|
||||
puts("Register the packet dump thread for GNRC_NETTYPE_UNDEF packets");
|
||||
dump.pid = gnrc_pktdump_getpid();
|
||||
dump.pid = gnrc_pktdump_pid;
|
||||
dump.demux_ctx = GNRC_NETREG_DEMUX_CTX_ALL;
|
||||
gnrc_netreg_register(GNRC_NETTYPE_UNDEF, &dump);
|
||||
|
||||
|
@ -41,7 +41,7 @@ int main(void)
|
||||
gnrc_nomac_init(nomac_stack, sizeof(nomac_stack), 5, "nomac", &dev);
|
||||
|
||||
/* initialize packet dumper */
|
||||
netobj.pid = gnrc_pktdump_getpid();
|
||||
netobj.pid = gnrc_pktdump_pid;
|
||||
netobj.demux_ctx = GNRC_NETREG_DEMUX_CTX_ALL;
|
||||
gnrc_netreg_register(GNRC_NETTYPE_UNDEF, &netobj);
|
||||
|
||||
|
@ -35,7 +35,7 @@ int main(void)
|
||||
puts("Xbee S1 device driver test");
|
||||
|
||||
/* initialize and register pktdump */
|
||||
dump.pid = gnrc_pktdump_getpid();
|
||||
dump.pid = gnrc_pktdump_pid;
|
||||
if (dump.pid <= KERNEL_PID_UNDEF) {
|
||||
puts("Error starting pktdump thread");
|
||||
return -1;
|
||||
|
@ -35,7 +35,7 @@ int main(void)
|
||||
puts("SLIP test");
|
||||
|
||||
/* initialize and register pktdump */
|
||||
dump.pid = gnrc_pktdump_getpid();
|
||||
dump.pid = gnrc_pktdump_pid;
|
||||
dump.demux_ctx = GNRC_NETREG_DEMUX_CTX_ALL;
|
||||
|
||||
if (dump.pid <= KERNEL_PID_UNDEF) {
|
||||
|
@ -35,7 +35,7 @@ int main(void)
|
||||
puts("ZEP module test");
|
||||
|
||||
/* initialize and register pktdump */
|
||||
dump.pid = gnrc_pktdump_getpid();
|
||||
dump.pid = gnrc_pktdump_pid;
|
||||
|
||||
if (dump.pid <= KERNEL_PID_UNDEF) {
|
||||
puts("Error starting pktdump thread");
|
||||
|
Loading…
Reference in New Issue
Block a user