forked from OSchip/llvm-project
Match printf format specifiers and arguments
llvm-svn: 184854
This commit is contained in:
parent
242fcb846e
commit
a708a36cea
|
@ -69,13 +69,13 @@ PtraceWrapper(int req, lldb::pid_t pid, void *addr, int data,
|
|||
Log *log (ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_PTRACE));
|
||||
|
||||
if (log) {
|
||||
log->Printf("ptrace(%s, %u, %p, %x) called from file %s line %d",
|
||||
log->Printf("ptrace(%s, %lu, %p, %x) called from file %s line %d",
|
||||
reqName, pid, addr, data, file, line);
|
||||
if (req == PT_IO) {
|
||||
struct ptrace_io_desc *pi = (struct ptrace_io_desc *) addr;
|
||||
|
||||
log->Printf("PT_IO: op=%s offs=%zx size=%ld",
|
||||
Get_PT_IO_OP(pi->piod_op), pi->piod_offs, pi->piod_len);
|
||||
Get_PT_IO_OP(pi->piod_op), (size_t)pi->piod_offs, pi->piod_len);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue