debug.c (fd0d00c59747ea3700ebf727eda9df09e8dc7fd9) debug.c (b92367948a1777de80dd7ee31a15a90df0b727bf)
1/*
2 * debug.c
3 *
4 * Copyright (c) 1996-1999 Whistle Communications, Inc.
5 * All rights reserved.
6 *
7 * Subject to the following obligations and disclaimer of warranty, use and
8 * redistribution of this software, in source or object code forms, with or

--- 229 unchanged lines hidden (view full) ---

238 goto done;
239
240fail:
241 /* Just display binary version */
242 NGLOGX(" [error decoding message: %s]", strerror(errno));
243fail2:
244 NGLOGX(" cmd %d", msg->header.cmd);
245 NGLOGX(" args (%d bytes)", msg->header.arglen);
1/*
2 * debug.c
3 *
4 * Copyright (c) 1996-1999 Whistle Communications, Inc.
5 * All rights reserved.
6 *
7 * Subject to the following obligations and disclaimer of warranty, use and
8 * redistribution of this software, in source or object code forms, with or

--- 229 unchanged lines hidden (view full) ---

238 goto done;
239
240fail:
241 /* Just display binary version */
242 NGLOGX(" [error decoding message: %s]", strerror(errno));
243fail2:
244 NGLOGX(" cmd %d", msg->header.cmd);
245 NGLOGX(" args (%d bytes)", msg->header.arglen);
246 _NgDebugBytes(msg->data, msg->header.arglen);
246 _NgDebugBytes((u_char *)msg->data, msg->header.arglen);
247
248done:
249 if (csock != -1)
250 (void)close(csock);
251}
252
253/*
254 * Return the name of the node type corresponding to the cookie

--- 54 unchanged lines hidden ---
247
248done:
249 if (csock != -1)
250 (void)close(csock);
251}
252
253/*
254 * Return the name of the node type corresponding to the cookie

--- 54 unchanged lines hidden ---