summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-06 21:01:54 +0000
committerbde <bde@FreeBSD.org>1998-07-06 21:01:54 +0000
commit0609531ab6b945c4918206f095bc1f6640408654 (patch)
tree0e5040099f85d8bf99734db8ff976b2c1e7d1b49 /usr.bin/truss
parentbaf42e5599bd1cbdb2a0e5427980549767a002b8 (diff)
downloadFreeBSD-src-0609531ab6b945c4918206f095bc1f6640408654.zip
FreeBSD-src-0609531ab6b945c4918206f095bc1f6640408654.tar.gz
Fixed printf format errors.
Diffstat (limited to 'usr.bin/truss')
-rw-r--r--usr.bin/truss/amd64-fbsd32.c6
-rw-r--r--usr.bin/truss/amd64-linux32.c6
-rw-r--r--usr.bin/truss/i386-fbsd.c6
-rw-r--r--usr.bin/truss/i386-linux.c6
-rw-r--r--usr.bin/truss/main.c6
-rw-r--r--usr.bin/truss/syscalls.c12
6 files changed, 21 insertions, 21 deletions
diff --git a/usr.bin/truss/amd64-fbsd32.c b/usr.bin/truss/amd64-fbsd32.c
index 2a88655..3096c82 100644
--- a/usr.bin/truss/amd64-fbsd32.c
+++ b/usr.bin/truss/amd64-fbsd32.c
@@ -31,7 +31,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: i386-fbsd.c,v 1.4 1998/01/09 00:39:07 sef Exp $";
+ "$Id: i386-fbsd.c,v 1.5 1998/01/09 09:31:40 sef Exp $";
#endif /* not lint */
/*
@@ -269,7 +269,7 @@ i386_syscall_exit(int pid, int syscall) {
if (!sc) {
for (i = 0; i < fsc.nargs; i++) {
fsc.s_args[i] = malloc(12);
- sprintf(fsc.s_args[i], "0x%x", fsc.args[i]);
+ sprintf(fsc.s_args[i], "0x%lx", fsc.args[i]);
}
} else {
/*
@@ -285,7 +285,7 @@ i386_syscall_exit(int pid, int syscall) {
*/
if (errorp) {
temp = malloc(12);
- sprintf(temp, "0x%x", fsc.args[sc->args[i].offset]);
+ sprintf(temp, "0x%lx", fsc.args[sc->args[i].offset]);
} else {
temp = print_arg(Procfd, &sc->args[i], fsc.args);
}
diff --git a/usr.bin/truss/amd64-linux32.c b/usr.bin/truss/amd64-linux32.c
index 8052f1c..2d334ba 100644
--- a/usr.bin/truss/amd64-linux32.c
+++ b/usr.bin/truss/amd64-linux32.c
@@ -31,7 +31,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: i386-linux.c,v 1.4 1998/01/09 00:39:10 sef Exp $";
+ "$Id: i386-linux.c,v 1.5 1998/01/09 09:31:42 sef Exp $";
#endif /* not lint */
/*
@@ -222,7 +222,7 @@ i386_linux_syscall_exit(int pid, int syscall) {
if (!sc) {
for (i = 0; i < lsc.nargs; i++) {
lsc.s_args[i] = malloc(12);
- sprintf(lsc.s_args[i], "0x%x", lsc.args[i]);
+ sprintf(lsc.s_args[i], "0x%lx", lsc.args[i]);
}
} else {
for (i = 0; i < sc->nargs; i++) {
@@ -230,7 +230,7 @@ i386_linux_syscall_exit(int pid, int syscall) {
if (sc->args[i].type & OUT) {
if (errorp) {
temp = malloc(12);
- sprintf(temp, "0x%x", lsc.args[sc->args[i].offset]);
+ sprintf(temp, "0x%lx", lsc.args[sc->args[i].offset]);
} else {
temp = print_arg(Procfd, &sc->args[i], lsc.args);
}
diff --git a/usr.bin/truss/i386-fbsd.c b/usr.bin/truss/i386-fbsd.c
index 2a88655..3096c82 100644
--- a/usr.bin/truss/i386-fbsd.c
+++ b/usr.bin/truss/i386-fbsd.c
@@ -31,7 +31,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: i386-fbsd.c,v 1.4 1998/01/09 00:39:07 sef Exp $";
+ "$Id: i386-fbsd.c,v 1.5 1998/01/09 09:31:40 sef Exp $";
#endif /* not lint */
/*
@@ -269,7 +269,7 @@ i386_syscall_exit(int pid, int syscall) {
if (!sc) {
for (i = 0; i < fsc.nargs; i++) {
fsc.s_args[i] = malloc(12);
- sprintf(fsc.s_args[i], "0x%x", fsc.args[i]);
+ sprintf(fsc.s_args[i], "0x%lx", fsc.args[i]);
}
} else {
/*
@@ -285,7 +285,7 @@ i386_syscall_exit(int pid, int syscall) {
*/
if (errorp) {
temp = malloc(12);
- sprintf(temp, "0x%x", fsc.args[sc->args[i].offset]);
+ sprintf(temp, "0x%lx", fsc.args[sc->args[i].offset]);
} else {
temp = print_arg(Procfd, &sc->args[i], fsc.args);
}
diff --git a/usr.bin/truss/i386-linux.c b/usr.bin/truss/i386-linux.c
index 8052f1c..2d334ba 100644
--- a/usr.bin/truss/i386-linux.c
+++ b/usr.bin/truss/i386-linux.c
@@ -31,7 +31,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: i386-linux.c,v 1.4 1998/01/09 00:39:10 sef Exp $";
+ "$Id: i386-linux.c,v 1.5 1998/01/09 09:31:42 sef Exp $";
#endif /* not lint */
/*
@@ -222,7 +222,7 @@ i386_linux_syscall_exit(int pid, int syscall) {
if (!sc) {
for (i = 0; i < lsc.nargs; i++) {
lsc.s_args[i] = malloc(12);
- sprintf(lsc.s_args[i], "0x%x", lsc.args[i]);
+ sprintf(lsc.s_args[i], "0x%lx", lsc.args[i]);
}
} else {
for (i = 0; i < sc->nargs; i++) {
@@ -230,7 +230,7 @@ i386_linux_syscall_exit(int pid, int syscall) {
if (sc->args[i].type & OUT) {
if (errorp) {
temp = malloc(12);
- sprintf(temp, "0x%x", lsc.args[sc->args[i].offset]);
+ sprintf(temp, "0x%lx", lsc.args[sc->args[i].offset]);
} else {
temp = print_arg(Procfd, &sc->args[i], lsc.args);
}
diff --git a/usr.bin/truss/main.c b/usr.bin/truss/main.c
index 8c020e5..c83946a 100644
--- a/usr.bin/truss/main.c
+++ b/usr.bin/truss/main.c
@@ -31,7 +31,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: main.c,v 1.7 1998/01/05 07:30:25 charnier Exp $";
+ "$Id: main.c,v 1.8 1998/01/07 06:19:50 jmg Exp $";
#endif /* not lint */
/*
@@ -215,10 +215,10 @@ main(int ac, char **av) {
funcs->exit_syscall(pid, pfs.val);
break;
case S_SIG:
- fprintf(outfile, "SIGNAL %d\n", pfs.val);
+ fprintf(outfile, "SIGNAL %lu\n", pfs.val);
break;
case S_EXIT:
- fprintf (outfile, "process exit, rval = %d\n", pfs.val);
+ fprintf (outfile, "process exit, rval = %lu\n", pfs.val);
break;
case S_EXEC:
funcs = set_etype();
diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c
index 9c29d52..cf1db2c 100644
--- a/usr.bin/truss/syscalls.c
+++ b/usr.bin/truss/syscalls.c
@@ -31,7 +31,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id$";
+ "$Id: syscalls.c,v 1.4 1998/01/05 07:30:25 charnier Exp $";
#endif /* not lint */
/*
@@ -170,15 +170,15 @@ print_arg(int fd, struct syscall_args *sc, unsigned long *args) {
switch (sc->type & ARG_MASK) {
case Hex:
tmp = malloc(12);
- sprintf(tmp, "0x%x", args[sc->offset]);
+ sprintf(tmp, "0x%lx", args[sc->offset]);
break;
case Octal:
tmp = malloc(13);
- sprintf(tmp, "0%o", args[sc->offset]);
+ sprintf(tmp, "0%lo", args[sc->offset]);
break;
case Int:
tmp = malloc(12);
- sprintf(tmp, "%d", args[sc->offset]);
+ sprintf(tmp, "%ld", args[sc->offset]);
break;
case String:
{
@@ -202,7 +202,7 @@ print_arg(int fd, struct syscall_args *sc, unsigned long *args) {
}
case Ptr:
tmp = malloc(12);
- sprintf(tmp, "0x%x", args[sc->offset]);
+ sprintf(tmp, "0x%lx", args[sc->offset]);
break;
case Ioctl:
{
@@ -211,7 +211,7 @@ print_arg(int fd, struct syscall_args *sc, unsigned long *args) {
tmp = strdup(temp);
else {
tmp = malloc(12);
- sprintf(tmp, "0x%x", args[sc->offset]);
+ sprintf(tmp, "0x%lx", args[sc->offset]);
}
}
}
OpenPOWER on IntegriCloud