From 69e2c8d49fa80c90c9c0e91a696fba38a7ad6afd Mon Sep 17 00:00:00 2001
From: James Kilts <jameskilts@gmail.com>
Date: Mon, 18 Jan 2010 19:07:25 +0100
Subject: [PATCH 2/4] rtmac: Additional error message detail to assist debugging failed TDMA
 client/server connections.

Signed-off-by: James Kilts <jameskilts@gmail.com>
---
 stack/rtmac/rtmac_proto.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/stack/rtmac/rtmac_proto.c b/stack/rtmac/rtmac_proto.c
index 3426fe9..6a9d03b 100644
--- a/stack/rtmac/rtmac_proto.c
+++ b/stack/rtmac/rtmac_proto.c
@@ -50,7 +50,8 @@ int rtmac_proto_rx(struct rtskb *skb, struct rtpacket_type *pt)
 
     if (hdr->ver != RTMAC_VERSION) {
         rtdm_printk("RTmac: received unsupported RTmac protocol version on "
-                    "device %s\n", skb->rtdev->name);
+                    "device %s.  Got 0x%x but expected 0x%x\n",
+                    skb->rtdev->name, hdr->ver, RTMAC_VERSION);
         goto error;
     }
 
-- 
1.6.5.1.msysgit.1

