File: fix_printf_pointer.patch

package info (click to toggle)
libomxvorbis 0.1-4
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,440 kB
  • sloc: sh: 10,163; ansic: 606; makefile: 19
file content (45 lines) | stat: -rw-r--r-- 2,466 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Description: Fix printf pointer address
 Convert the pointer address to int and then print it out with %x doesn't
 work on 64-bit systems. We should use %p for that.
Bug-Debian: http://bugs.debian.org/622206
Author: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
Last-Update: 2011-04-12
Index: libomxvorbis-0.1/src/omx_vorbisdec_component.c
===================================================================
--- libomxvorbis-0.1.orig/src/omx_vorbisdec_component.c	2011-04-13 10:14:32.134462671 +0800
+++ libomxvorbis-0.1/src/omx_vorbisdec_component.c	2011-04-13 10:15:35.133356538 +0800
@@ -57,7 +57,7 @@
       return OMX_ErrorInsufficientResources;
     }
   }  else {
-    DEBUG(DEB_LEV_FUNCTION_NAME, "In %s, Error Component %x Already Allocated\n", __func__, (int)openmaxStandComp->pComponentPrivate);
+    DEBUG(DEB_LEV_FUNCTION_NAME, "In %s, Error Component %p Already Allocated\n", __func__, openmaxStandComp->pComponentPrivate);
   }
 
   omx_vorbisdec_component_Private = openmaxStandComp->pComponentPrivate;
@@ -282,14 +282,14 @@
   ogg_int16_t convbuffer[4096];
 
 
-  DEBUG(DEB_LEV_FULL_SEQ, "input buf %x filled len : %d \n", (int)inputbuffer->pBuffer, (int)inputbuffer->nFilledLen);
+  DEBUG(DEB_LEV_FULL_SEQ, "input buf %p filled len : %d \n", inputbuffer->pBuffer, (int)inputbuffer->nFilledLen);
   /** Fill up the current input buffer when a new buffer has arrived */
   if(omx_vorbisdec_component_Private->isNewBuffer) {
     omx_vorbisdec_component_Private->inputCurrBuffer = inputbuffer->pBuffer;
     omx_vorbisdec_component_Private->inputCurrLength = inputbuffer->nFilledLen;
     omx_vorbisdec_component_Private->positionInOutBuf = 0;
 
-    DEBUG(DEB_LEV_SIMPLE_SEQ, "new -- input buf %x filled len : %d \n", (int)inputbuffer->pBuffer, (int)inputbuffer->nFilledLen);
+    DEBUG(DEB_LEV_SIMPLE_SEQ, "new -- input buf %p filled len : %d \n", inputbuffer->pBuffer, (int)inputbuffer->nFilledLen);
 
     /** for each new input buffer --- copy buffer content into into ogg sync state structure data */
     vorbis_buffer = ogg_sync_buffer(&omx_vorbisdec_component_Private->oy, inputbuffer->nAllocLen);
@@ -501,7 +501,7 @@
     eos=1;
   }
 
-  DEBUG(DEB_LEV_FULL_SEQ, "One output buffer %x len=%d is full returning\n", (int)outputbuffer->pBuffer, (int)outputbuffer->nFilledLen);
+  DEBUG(DEB_LEV_FULL_SEQ, "One output buffer %p len=%d is full returning\n", outputbuffer->pBuffer, (int)outputbuffer->nFilledLen);
 }
 
 /** setting parameter values