diff options
author | Assar Westerlund <assar@FreeBSD.org> | 2001-07-22 00:12:22 +0000 |
---|---|---|
committer | Assar Westerlund <assar@FreeBSD.org> | 2001-07-22 00:12:22 +0000 |
commit | 57762323e541f6d5a4daba53eac058013fff9ed0 (patch) | |
tree | 638735d78946507ccfa13d2d196fe399527277a2 /sys/compat/svr4/imgact_svr4.c | |
parent | 6897f282e5310f6696f2d978a0579108ea7028cb (diff) | |
download | src-57762323e541f6d5a4daba53eac058013fff9ed0.tar.gz src-57762323e541f6d5a4daba53eac058013fff9ed0.zip |
get rid of some printf and pointer type warnings
Notes
Notes:
svn path=/head/; revision=80114
Diffstat (limited to 'sys/compat/svr4/imgact_svr4.c')
-rw-r--r-- | sys/compat/svr4/imgact_svr4.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/compat/svr4/imgact_svr4.c b/sys/compat/svr4/imgact_svr4.c index 75c3c57da2d2..6692c98f9cdb 100644 --- a/sys/compat/svr4/imgact_svr4.c +++ b/sys/compat/svr4/imgact_svr4.c @@ -88,7 +88,7 @@ exec_svr4_imgact(imgp) } bss_size = round_page(a_out->a_bss); #ifdef DEBUG - printf("imgact: text: %08x, data: %08x, bss: %08x\n", a_out->a_text, a_out->a_data, bss_size); + printf("imgact: text: %08lx, data: %08lx, bss: %08lx\n", a_out->a_text, a_out->a_data, bss_size); #endif /* @@ -129,7 +129,7 @@ exec_svr4_imgact(imgp) */ if (file_offset & PAGE_MASK) { #ifdef DEBUG - printf("imgact: Non page aligned binary %d\n", file_offset); + printf("imgact: Non page aligned binary %lu\n", file_offset); #endif /* * Map text+data+bss read/write/execute @@ -170,7 +170,7 @@ exec_svr4_imgact(imgp) } else { #ifdef DEBUG - printf("imgact: Page aligned binary %d\n", file_offset); + printf("imgact: Page aligned binary %lu\n", file_offset); #endif /* * Map text+data read/execute @@ -186,7 +186,8 @@ exec_svr4_imgact(imgp) return (error); #ifdef DEBUG - printf("imgact: startaddr=%08x, length=%08x\n", vmaddr, a_out->a_text + a_out->a_data); + printf("imgact: startaddr=%08lx, length=%08lx\n", (u_long)vmaddr, + a_out->a_text + a_out->a_data); #endif /* * allow read/write of data @@ -209,7 +210,8 @@ exec_svr4_imgact(imgp) if (error) return (error); #ifdef DEBUG - printf("imgact: bssaddr=%08x, length=%08x\n", vmaddr, bss_size); + printf("imgact: bssaddr=%08lx, length=%08lx\n", + (u_long)vmaddr, bss_size); #endif } |