Rename printnum to printnum_long to avoid confusion

* defs.h (printnum): Rename to printnum_long.
* util.c (printnum): Likewise.
* process.c (sys_ptrace): Likewise.
* time.c (sys_time): Likewise.
This commit is contained in:
Дмитрий Левин 2015-02-17 22:03:17 +00:00
parent f55cca729f
commit 1c603a9e07
4 changed files with 4 additions and 4 deletions

2
defs.h
View File

@ -507,8 +507,8 @@ extern void dumpiov_in_mmsghdr(struct tcb *, long);
extern void dumpiov(struct tcb *, int, long);
extern void dumpstr(struct tcb *, long, int);
extern void printstr(struct tcb *, long, long);
extern void printnum(struct tcb *, long, const char *);
extern void printnum_int(struct tcb *, long, const char *);
extern void printnum_long(struct tcb *, long, const char *);
extern void printpath(struct tcb *, long);
extern void printpathn(struct tcb *, long, unsigned int);
#define TIMESPEC_TEXT_BUFSIZE (sizeof(long)*3 * 2 + sizeof("{%u, %u}"))

View File

@ -131,7 +131,7 @@ sys_ptrace(struct tcb *tcp)
#ifdef IA64
return RVAL_HEX;
#else
printnum(tcp, tcp->u_arg[3], "%#lx");
printnum_long(tcp, tcp->u_arg[3], "%#lx");
break;
#endif
case PTRACE_GETSIGINFO: {

2
time.c
View File

@ -157,7 +157,7 @@ int
sys_time(struct tcb *tcp)
{
if (exiting(tcp)) {
printnum(tcp, tcp->u_arg[0], "%ld");
printnum_long(tcp, tcp->u_arg[0], "%ld");
}
return 0;
}

2
util.c
View File

@ -376,7 +376,7 @@ printflags(const struct xlat *xlat, int flags, const char *dflt)
}
void
printnum(struct tcb *tcp, long addr, const char *fmt)
printnum_long(struct tcb *tcp, long addr, const char *fmt)
{
long num;