Skip to content

Commit 802e307

Browse files
Paolo 'Blaisorblade' GiarrussoLinus Torvalds
authored andcommitted
[PATCH] uml: fix format errors
Now that GCC warns about format errors, fix them. Nothing able to cause a crash, however. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Cc: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 9cf85b3 commit 802e307

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎arch/um/drivers/slirp_user.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static void slirp_close(int fd, void *data)
104104
}
105105

106106
if(err == 0) {
107-
printk("slirp_close: process %d has not exited\n");
107+
printk("slirp_close: process %d has not exited\n", pri->pid);
108108
return;
109109
}
110110

‎arch/um/os-Linux/drivers/ethertap_user.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static void etap_change(int op, unsigned char *addr, unsigned char *netmask,
4040
int fd)
4141
{
4242
struct addr_change change;
43-
void *output;
43+
char *output;
4444
int n;
4545

4646
change.what = op;

‎arch/um/os-Linux/skas/mem.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ static inline long do_syscall_stub(struct mm_id * mm_idp, void **addr)
8282
if (offset) {
8383
data = (unsigned long *)(mm_idp->stack +
8484
offset - UML_CONFIG_STUB_DATA);
85-
printk("do_syscall_stub : ret = %d, offset = %d, "
86-
"data = 0x%x\n", ret, offset, data);
85+
printk("do_syscall_stub : ret = %ld, offset = %ld, "
86+
"data = %p\n", ret, offset, data);
8787
syscall = (unsigned long *)((unsigned long)data + data[0]);
8888
printk("do_syscall_stub: syscall %ld failed, return value = "
8989
"0x%lx, expected return value = 0x%lx\n",

‎arch/um/os-Linux/skas/process.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ void userspace(union uml_pt_regs *regs)
265265
if(err)
266266
panic("userspace - could not resume userspace process, "
267267
"pid=%d, ptrace operation = %d, errno = %d\n",
268-
op, errno);
268+
pid, op, errno);
269269

270270
CATCH_EINTR(err = waitpid(pid, &status, WUNTRACED));
271271
if(err < 0)
@@ -369,7 +369,7 @@ int copy_context_skas0(unsigned long new_stack, int pid)
369369
*/
370370
wait_stub_done(pid, -1, "copy_context_skas0");
371371
if (child_data->err != UML_CONFIG_STUB_DATA)
372-
panic("copy_context_skas0 - stub-child reports error %d\n",
372+
panic("copy_context_skas0 - stub-child reports error %ld\n",
373373
child_data->err);
374374

375375
if (ptrace(PTRACE_OLDSETOPTIONS, pid, NULL,

‎arch/um/sys-i386/ptrace_user.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static void write_debugregs(int pid, unsigned long *regs)
5757
if(ptrace(PTRACE_POKEUSR, pid, &dummy->u_debugreg[i],
5858
regs[i]) < 0)
5959
printk("write_debugregs - ptrace failed on "
60-
"register %d, value = 0x%x, errno = %d\n", i,
60+
"register %d, value = 0x%lx, errno = %d\n", i,
6161
regs[i], errno);
6262
}
6363
}

0 commit comments

Comments
 (0)