diff --git a/appl/kx/kx.c b/appl/kx/kx.c index 72090f221..ca3cfa5fb 100644 --- a/appl/kx/kx.c +++ b/appl/kx/kx.c @@ -383,14 +383,14 @@ doit (char *host, int passivep, int debugp, int tcpp) fn = active; } if(debugp) - printf ("%u\t%d\t%s\n", (unsigned)getpid(), display_num, xauthfile); + printf ("%u\t%s\t%s\n", (unsigned)getpid(), display, xauthfile); else { pid = fork(); if (pid < 0) { fprintf (stderr, "%s: fork: %s\n", prog, strerror(errno)); return 1; } else if (pid > 0) { - printf ("%u\t%d\t%s\n", (unsigned)pid, display_num, xauthfile); + printf ("%u\t%s\t%s\n", (unsigned)pid, display, xauthfile); exit (0); } else { fclose(stdout);