[libbluray-devel] fixed logging jint/jsize

hpi1 git at videolan.org
Sun Mar 2 09:25:50 CET 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sat Mar  1 21:07:39 2014 +0200| [be0c0c1e08b622c24e98d42f41a94e86c96d3614] | committer: hpi1

fixed logging jint/jsize

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=be0c0c1e08b622c24e98d42f41a94e86c96d3614
---

 src/libbluray/bdj/native/org_videolan_Libbluray.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/libbluray/bdj/native/org_videolan_Libbluray.c b/src/libbluray/bdj/native/org_videolan_Libbluray.c
index d604a9c..fbeeaef 100644
--- a/src/libbluray/bdj/native/org_videolan_Libbluray.c
+++ b/src/libbluray/bdj/native/org_videolan_Libbluray.c
@@ -390,7 +390,7 @@ JNIEXPORT void JNICALL Java_org_videolan_Libbluray_updateGraphicN(JNIEnv * env,
 
     BDJAVA* bdj = (BDJAVA*)(intptr_t)np;
 
-    BD_DEBUG(DBG_JNI, "updateGraphicN(%d,%d-%d,%d)\n", x0, y0, x1, y1);
+    BD_DEBUG(DBG_JNI, "updateGraphicN(%ld,%ld-%ld,%ld)\n", (long)x0, (long)y0, (long)x1, (long)y1);
 
     /* app callback not initialized ? */
     if (!bdj || !bdj->osd_cb) {
@@ -437,8 +437,8 @@ JNIEXPORT void JNICALL Java_org_videolan_Libbluray_updateGraphicN(JNIEnv * env,
 
         if (bdj->buf->width < width || bdj->buf->height < height) {
             /* assume buffer is only for the dirty arrea */
-            BD_DEBUG(DBG_BDJ, "ARGB frame buffer size is smaller than BD-J frame buffer size (app: %dx%d BD-J: %dx%d)\n",
-                     bdj->buf->width, bdj->buf->height, width, height);
+            BD_DEBUG(DBG_BDJ, "ARGB frame buffer size is smaller than BD-J frame buffer size (app: %dx%d BD-J: %ldx%ld)\n",
+                     bdj->buf->width, bdj->buf->height, (long)width, (long)height);
 
             if (bdj->buf->width < (x1 - x0 + 1) || bdj->buf->height < (y1 - y0 + 1)) {
                 BD_DEBUG(DBG_BDJ | DBG_CRIT, "ARGB frame buffer size is smaller than dirty area\n");
@@ -456,11 +456,11 @@ JNIEXPORT void JNICALL Java_org_videolan_Libbluray_updateGraphicN(JNIEnv * env,
 
             /* clip */
             if (y1 >= bdj->buf->height) {
-                BD_DEBUG(DBG_BDJ | DBG_CRIT, "Cropping %d rows from bottom\n", y1 - bdj->buf->height);
+              BD_DEBUG(DBG_BDJ | DBG_CRIT, "Cropping %ld rows from bottom\n", (long)(y1 - bdj->buf->height));
                 y1 = bdj->buf->height - 1;
             }
             if (x1 >= bdj->buf->width) {
-                BD_DEBUG(DBG_BDJ | DBG_CRIT, "Cropping %d pixels from right\n", x1 - bdj->buf->width);
+              BD_DEBUG(DBG_BDJ | DBG_CRIT, "Cropping %ld pixels from right\n", (long)(x1 - bdj->buf->width));
                 x1 = bdj->buf->width - 1;
             }
         }
@@ -477,7 +477,7 @@ JNIEXPORT void JNICALL Java_org_videolan_Libbluray_updateGraphicN(JNIEnv * env,
 
         /* check for errors */
         if ((*env)->ExceptionOccurred(env)) {
-            BD_DEBUG(DBG_BDJ | DBG_CRIT, "Array access error at %d (+%d)\n", offset, x1 - x0 + 1);
+          BD_DEBUG(DBG_BDJ | DBG_CRIT, "Array access error at %ld (+%ld)\n", (long)offset, (long)(x1 - x0 + 1));
             (*env)->ExceptionDescribe(env);
             (*env)->ExceptionClear(env);
         }



More information about the libbluray-devel mailing list