Browse Source

getcwd.c: use printaddr

* getcwd.c (sys_getcwd): Use printaddr.
Dmitry V. Levin 4 years ago
parent
commit
071193f620
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      getcwd.c

+ 1
- 1
getcwd.c View File

@@ -4,7 +4,7 @@ SYS_FUNC(getcwd)
4 4
 {
5 5
 	if (exiting(tcp)) {
6 6
 		if (syserror(tcp))
7
-			tprintf("%#lx", tcp->u_arg[0]);
7
+			printaddr(tcp->u_arg[0]);
8 8
 		else
9 9
 			printpathn(tcp, tcp->u_arg[0], tcp->u_rval - 1);
10 10
 		tprintf(", %lu", tcp->u_arg[1]);

Loading…
Cancel
Save