diff options
author | Tim Potter <tpot@samba.org> | 2003-11-03 14:34:25 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-11-03 14:34:25 +0000 |
commit | 23443e3aa079710221557e18158d0ddb8ff48a36 (patch) | |
tree | ab674d1c5ff7e34868e587d5d6f5817bba4f3c15 /source/printing | |
parent | 68945027b5dc6b5e1aee13e4df4d11a34e42a3a9 (diff) | |
download | samba-23443e3aa079710221557e18158d0ddb8ff48a36.tar.gz samba-23443e3aa079710221557e18158d0ddb8ff48a36.tar.xz samba-23443e3aa079710221557e18158d0ddb8ff48a36.zip |
Fix more 64-bit printf warnings.
Diffstat (limited to 'source/printing')
-rw-r--r-- | source/printing/nt_printing.c | 16 | ||||
-rw-r--r-- | source/printing/print_generic.c | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c index 908bd9c887f..bf8e1432c64 100644 --- a/source/printing/nt_printing.c +++ b/source/printing/nt_printing.c @@ -739,8 +739,8 @@ static int get_file_version(files_struct *fsp, char *fname,uint32 *major, uint32 /* Note: DOS_HEADER_SIZE < malloc'ed PE_HEADER_SIZE */ if ((byte_count = vfs_read_data(fsp, buf, DOS_HEADER_SIZE)) < DOS_HEADER_SIZE) { - DEBUG(3,("get_file_version: File [%s] DOS header too short, bytes read = %d\n", - fname, byte_count)); + DEBUG(3,("get_file_version: File [%s] DOS header too short, bytes read = %lu\n", + fname, (unsigned long)byte_count)); goto no_version_info; } @@ -760,8 +760,8 @@ static int get_file_version(files_struct *fsp, char *fname,uint32 *major, uint32 } if ((byte_count = vfs_read_data(fsp, buf, PE_HEADER_SIZE)) < PE_HEADER_SIZE) { - DEBUG(3,("get_file_version: File [%s] Windows header too short, bytes read = %d\n", - fname, byte_count)); + DEBUG(3,("get_file_version: File [%s] Windows header too short, bytes read = %lu\n", + fname, (unsigned long)byte_count)); /* Assume this isn't an error... the file just looks sort of like a PE/NE file */ goto no_version_info; } @@ -794,8 +794,8 @@ static int get_file_version(files_struct *fsp, char *fname,uint32 *major, uint32 } if ((byte_count = vfs_read_data(fsp, buf, section_table_bytes)) < section_table_bytes) { - DEBUG(3,("get_file_version: PE file [%s] Section header too short, bytes read = %d\n", - fname, byte_count)); + DEBUG(3,("get_file_version: PE file [%s] Section header too short, bytes read = %lu\n", + fname, (unsigned long)byte_count)); goto error_exit; } @@ -825,8 +825,8 @@ static int get_file_version(files_struct *fsp, char *fname,uint32 *major, uint32 } if ((byte_count = vfs_read_data(fsp, buf, section_bytes)) < section_bytes) { - DEBUG(3,("get_file_version: PE file [%s] .rsrc section too short, bytes read = %d\n", - fname, byte_count)); + DEBUG(3,("get_file_version: PE file [%s] .rsrc section too short, bytes read = %lu\n", + fname, (unsigned long)byte_count)); goto error_exit; } diff --git a/source/printing/print_generic.c b/source/printing/print_generic.c index 0b062ebdd98..1c847448da2 100644 --- a/source/printing/print_generic.c +++ b/source/printing/print_generic.c @@ -164,7 +164,7 @@ static int generic_job_submit(int snum, struct printjob *pjob) pstrcpy(jobname, pjob->jobname); pstring_sub(jobname, "'", "_"); slprintf(job_page_count, sizeof(job_page_count)-1, "%d", pjob->page_count); - slprintf(job_size, sizeof(job_size)-1, "%d", pjob->size); + slprintf(job_size, sizeof(job_size)-1, "%lu", (unsigned long)pjob->size); /* send it to the system spooler */ ret = print_run_command(snum, |