aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-icq.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2006-08-31 22:58:22 +0000
committerUlf Lamping <ulf.lamping@web.de>2006-08-31 22:58:22 +0000
commit04f35c220a2ea304948d86cda6e9a68745d84312 (patch)
tree45a60c8f5a0258d416586eadcaba6654c42131ac /epan/dissectors/packet-icq.c
parentd4499eb9a7a19865af8ca214f70e605004e21ec7 (diff)
use an expert_info instead of an fprintf to show an undecoded message (fprintf won't work on windows as usually no console available)
svn path=/trunk/; revision=19105
Diffstat (limited to 'epan/dissectors/packet-icq.c')
-rw-r--r--epan/dissectors/packet-icq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dissectors/packet-icq.c b/epan/dissectors/packet-icq.c
index 6bfd850c0a..c95f556321 100644
--- a/epan/dissectors/packet-icq.c
+++ b/epan/dissectors/packet-icq.c
@@ -47,6 +47,7 @@
#include <epan/packet.h>
#include <epan/addr_resolv.h>
+#include <epan/expert.h>
static int proto_icq = -1;
static int hf_icq_uin = -1;
@@ -2172,7 +2173,8 @@ static void dissect_icq(tvbuff_t *tvb,
dissect_icqv2(tvb, pinfo, tree);
break;
default:
- fprintf(stderr, "ICQ: Unknown version (0x%x)\n", version);
+ expert_add_info_format(pinfo, NULL, PI_UNDECODED, PI_WARN,
+ "Unknown version (0x%x)\n", version);
break;
}
}