Commit 0348310b authored by Bernd Eckenfels's avatar Bernd Eckenfels

lib/x25.c: fix compile error for -DDEBUG=1

parent 2466c758
......@@ -93,7 +93,7 @@ X25_input(int type, char *bufp, struct sockaddr *sap)
_("Address can't exceed eighteen digits with sigdigits"),
sizeof(X25_errmsg));
#ifdef DEBUG
fprintf(stderr, "x25_input(%s): %s !\n", X25_errmsg, orig);
fprintf(stderr, "x25_input(%s): %s !\n", bufp, X25_errmsg);
#endif
errno = EINVAL;
return(-1);
......@@ -112,7 +112,7 @@ X25_input(int type, char *bufp, struct sockaddr *sap)
*p = '/';
safe_strncpy(X25_errmsg, _("Invalid address"), sizeof(X25_errmsg));
#ifdef DEBUG
fprintf(stderr, "x25_input(%s): %s !\n", X25_errmsg, orig);
fprintf(stderr, "x25_input(%s): %s !\n", bufp, X25_errmsg);
#endif
errno = EINVAL;
return(-1);
......@@ -122,10 +122,7 @@ X25_input(int type, char *bufp, struct sockaddr *sap)
/* All done. */
#ifdef DEBUG
fprintf(stderr, "x25_input(%s): ", orig);
for (i = 0; i < sizeof(x25_address); i++)
fprintf(stderr, "%02X ", sap->sa_data[i] & 0377);
fprintf(stderr, "\n");
fprintf(stderr, "x25_input(%s)\n", bufp);
#endif
return sigdigits;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment