From 11879f210c5972d66575e5ba2216c2c7a1c290d2 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Thu, 23 Apr 2009 08:59:22 +0000 Subject: [PATCH] improved debug output --- .../java/se/sics/cooja/plugins/NativeIPGateway.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/cooja/apps/native_gateway/java/se/sics/cooja/plugins/NativeIPGateway.java b/tools/cooja/apps/native_gateway/java/se/sics/cooja/plugins/NativeIPGateway.java index af1d2985e..53810a35a 100644 --- a/tools/cooja/apps/native_gateway/java/se/sics/cooja/plugins/NativeIPGateway.java +++ b/tools/cooja/apps/native_gateway/java/se/sics/cooja/plugins/NativeIPGateway.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: NativeIPGateway.java,v 1.3 2008/12/17 12:15:43 fros4943 Exp $ + * $Id: NativeIPGateway.java,v 1.4 2009/04/23 08:59:22 fros4943 Exp $ */ package se.sics.cooja.plugins; @@ -70,6 +70,7 @@ import se.sics.cooja.Plugin; import se.sics.cooja.PluginType; import se.sics.cooja.Simulation; import se.sics.cooja.interfaces.SerialPort; +import se.sics.cooja.util.StringUtils; @ClassDescription("Open Native IP Gateway") @PluginType(PluginType.MOTE_PLUGIN) @@ -736,12 +737,11 @@ public class NativeIPGateway implements Plugin { /* Sanity check outgoing data */ if (packetData.length < IP_HEADER_LEN) { - /*logger.warn("Ignoring small packet: " + packetData.length);*/ + /*logger.warn("Ignoring small packet:\n" + StringUtils.hexDump(packetData));*/ return; } if (packetData[0] != 0x45) { - /*logger.warn("Ignoring bad header:" + - " 0x" + Integer.toHexString(packetData[0]&0xFF));*/ + /*logger.warn("Ignoring bad header:\n" + StringUtils.hexDump(packetData));*/ return; }