From 88fb193a68ec3e609d186b06b1cbd72a33bb11ff Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Wed, 2 Jul 2008 14:08:06 +0000 Subject: [PATCH] Print MAC layer with mac command --- apps/shell/shell-rime.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/shell/shell-rime.c b/apps/shell/shell-rime.c index 3a40cda83..7fdb7d26f 100644 --- a/apps/shell/shell-rime.c +++ b/apps/shell/shell-rime.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: shell-rime.c,v 1.3 2008/02/24 20:58:35 adamdunkels Exp $ + * $Id: shell-rime.c,v 1.4 2008/07/02 14:08:06 adamdunkels Exp $ */ /** @@ -158,14 +158,16 @@ PROCESS_THREAD(shell_mac_process, ev, data) PROCESS_BEGIN(); onoroff = shell_strtolong((char *)data, &next); if(next == data) { - shell_output_str(&mac_command, "usage: ", mac_command.description); + shell_output_str(&mac_command, "mac: current MAC layer: ", rime_mac->name); + shell_output_str(&mac_command, "mac usage: ", mac_command.description); } else { if(onoroff) { rime_mac->on(); - shell_output_str(&mac_command, "mac: turned MAC on", ""); + shell_output_str(&mac_command, "mac: turned MAC on: ", rime_mac->name); } else { rime_mac->off(1); - shell_output_str(&mac_command, "mac: turned MAC off (keeping radio on)", ""); + shell_output_str(&mac_command, "mac: turned MAC off (keeping radio on): ", + rime_mac->name); } } PROCESS_END();