~ubuntu-branches/ubuntu/maverick/altermime/maverick

« back to all changes in this revision

Viewing changes to debian/patches/10_fix_printk_warnings.diff

  • Committer: Bazaar Package Importer
  • Author(s): Julien Valroff
  • Date: 2010-01-01 18:49:00 UTC
  • Revision ID: james.westby@ubuntu.com-20100101184900-wfqqwv1wqqhx11xm
Tags: 0.3.10-3
* Bump Standards-Version to 3.8.3 - no further changes
* Converted source package to 3.0 (quilt) format
* Switched to GIT - updated VCS-* fields accordingly
* Added misc:Depends to control file
* Removed XS- prefix for DM-Upload-Allowed field
* Fixed doc-base installation file

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Fix compile errors on debug statements
 
2
Author: Julien Valroff <julien@kirya.net>
 
3
Forwarded: yes
 
4
 
 
5
 
 
6
--- a/qpe.c
 
7
+++ b/qpe.c
 
8
@@ -97,7 +97,7 @@
 
9
                                op+= strlen(paragraph);// +3; /** jump the output + =\r\n **/
 
10
                                out_remaining-= (strlen(paragraph)); // Was +3, updated to fix Outlook problems
 
11
 
 
12
-                               QPD fprintf(stdout, "Soft break (%d + %d > 76 char) for '%s'\n", current_line_length, charout_size, paragraph);
 
13
+                               QPD fprintf(stdout, "Soft break (%Zd + %d > 76 char) for '%s'\n", current_line_length, charout_size, paragraph);
 
14
                                
 
15
                                /** reinitialize the paragraph **/
 
16
                                paragraph[0] = '\0';
 
17
@@ -108,7 +108,7 @@
 
18
                        }
 
19
 
 
20
                        snprintf(pp, pp_remaining, "%s", charout);
 
21
-                       QPD fprintf(stdout,"charout='%s', size=%d, pp_remain=%d result='%s'\n", charout, charout_size, pp_remaining, paragraph);
 
22
+                       QPD fprintf(stdout,"charout='%s', size=%d, pp_remain=%Zd result='%s'\n", charout, charout_size, pp_remaining, paragraph);
 
23
                        pp += charout_size;
 
24
                        pp_remaining -= charout_size;
 
25
                        p++;
 
26
@@ -149,13 +149,13 @@
 
27
        out_size = in_size *3;
 
28
        in_buffer = malloc( sizeof(char) *in_size +1);
 
29
        if (in_buffer == NULL) {
 
30
-               QPD fprintf(stdout,"Error allocating %d bytes for input buffer\n", in_size);
 
31
+               QPD fprintf(stdout,"Error allocating %Zd bytes for input buffer\n", in_size);
 
32
                return -1;
 
33
        }
 
34
 
 
35
        out_buffer = malloc( sizeof(char) *out_size *3 +1);
 
36
        if (in_buffer == NULL) {
 
37
-               QPD fprintf(stdout,"Error allocating %d bytes for output buffer\n", out_size);
 
38
+               QPD fprintf(stdout,"Error allocating %Zd bytes for output buffer\n", out_size);
 
39
                return -1;
 
40
        }
 
41
 
 
42
@@ -169,7 +169,7 @@
 
43
          ** we segfault ;)  **/
 
44
        *(in_buffer +in_size) = '\0';
 
45
 
 
46
-       QPD fprintf(stdout,"file %s is loaded, size = %d\n", fname, in_size);
 
47
+       QPD fprintf(stdout,"file %s is loaded, size = %Zd\n", fname, in_size);
 
48
 
 
49
        qp_encode( out_buffer, out_size, in_buffer, in_size );
 
50