Match printf format specifiers and arguments

llvm-svn: 184854
This commit is contained in:
Ed Maste 2013-06-25 14:47:45 +00:00
parent 242fcb846e
commit a708a36cea
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}