~ubuntu-branches/ubuntu/trusty/altermime/trusty

« back to all changes in this revision

Viewing changes to debian/patches/10_fix_printk_warnings.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Julien Valroff
  • Date: 2009-03-15 08:35:04 UTC
  • mfrom: (4.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090315083504-xuownoelnl70umz9
Tags: 0.3.10-2
* Upload to unstable
* Bumped to new standards version 3.8.1 (no changes needed)
* Bumped debhelper compat to 7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 10_fix_printk_warnings.dpatch by  <julien@kirya.net>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: Fix compile errors on debug statements
 
6
 
 
7
@DPATCH@
 
8
diff -urNad altermime~/qpe.c altermime/qpe.c
 
9
--- altermime~/qpe.c    2008-10-30 18:29:35.000000000 +0100
 
10
+++ altermime/qpe.c     2008-11-22 20:33:37.000000000 +0100
 
11
@@ -97,7 +97,7 @@
 
12
                                op+= strlen(paragraph);// +3; /** jump the output + =\r\n **/
 
13
                                out_remaining-= (strlen(paragraph)); // Was +3, updated to fix Outlook problems
 
14
 
 
15
-                               QPD fprintf(stdout, "Soft break (%d + %d > 76 char) for '%s'\n", current_line_length, charout_size, paragraph);
 
16
+                               QPD fprintf(stdout, "Soft break (%Zd + %d > 76 char) for '%s'\n", current_line_length, charout_size, paragraph);
 
17
                                
 
18
                                /** reinitialize the paragraph **/
 
19
                                paragraph[0] = '\0';
 
20
@@ -108,7 +108,7 @@
 
21
                        }
 
22
 
 
23
                        snprintf(pp, pp_remaining, "%s", charout);
 
24
-                       QPD fprintf(stdout,"charout='%s', size=%d, pp_remain=%d result='%s'\n", charout, charout_size, pp_remaining, paragraph);
 
25
+                       QPD fprintf(stdout,"charout='%s', size=%d, pp_remain=%Zd result='%s'\n", charout, charout_size, pp_remaining, paragraph);
 
26
                        pp += charout_size;
 
27
                        pp_remaining -= charout_size;
 
28
                        p++;
 
29
@@ -149,13 +149,13 @@
 
30
        out_size = in_size *3;
 
31
        in_buffer = malloc( sizeof(char) *in_size +1);
 
32
        if (in_buffer == NULL) {
 
33
-               QPD fprintf(stdout,"Error allocating %d bytes for input buffer\n", in_size);
 
34
+               QPD fprintf(stdout,"Error allocating %Zd bytes for input buffer\n", in_size);
 
35
                return -1;
 
36
        }
 
37
 
 
38
        out_buffer = malloc( sizeof(char) *out_size *3 +1);
 
39
        if (in_buffer == NULL) {
 
40
-               QPD fprintf(stdout,"Error allocating %d bytes for output buffer\n", out_size);
 
41
+               QPD fprintf(stdout,"Error allocating %Zd bytes for output buffer\n", out_size);
 
42
                return -1;
 
43
        }
 
44
 
 
45
@@ -169,7 +169,7 @@
 
46
          ** we segfault ;)  **/
 
47
        *(in_buffer +in_size) = '\0';
 
48
 
 
49
-       QPD fprintf(stdout,"file %s is loaded, size = %d\n", fname, in_size);
 
50
+       QPD fprintf(stdout,"file %s is loaded, size = %Zd\n", fname, in_size);
 
51
 
 
52
        qp_encode( out_buffer, out_size, in_buffer, in_size );
 
53