[libbluray-devel] Convert some traces to hex format
anonymous
git at videolan.org
Tue May 27 10:38:32 CEST 2014
libbluray | branch: master | anonymous <anonymous at anonymous.org> | Tue May 27 11:38:00 2014 +0300| [bb28a3bff98270f596a1915735065ecf411938d0] | committer: anonymous
Convert some traces to hex format
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=bb28a3bff98270f596a1915735065ecf411938d0
---
src/libbluray/bdj/java/org/bluray/bdplus/Status.java | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/libbluray/bdj/java/org/bluray/bdplus/Status.java b/src/libbluray/bdj/java/org/bluray/bdplus/Status.java
index 0d64f02..3f5fcf6 100644
--- a/src/libbluray/bdj/java/org/bluray/bdplus/Status.java
+++ b/src/libbluray/bdj/java/org/bluray/bdplus/Status.java
@@ -48,8 +48,9 @@ public class Status {
}
public int get() {
- logger.trace("get()");
- return Libbluray.readPSR(104);
+ int val = Libbluray.readPSR(104);
+ logger.trace("get(): 0x" + Integer.toHexString(val));
+ return val;
}
public void removeListener(StatusListener listener) {
@@ -57,17 +58,17 @@ public class Status {
}
public void send(int data) {
- logger.trace("send(" + data + ")");
+ logger.trace("send(0x" + Integer.toHexString(data) + ")");
Libbluray.writePSR(103, data);
}
public void set(int data) {
- logger.trace("set(" + data + ")");
+ logger.trace("set(0x" + Integer.toHexString(data) + ")");
Libbluray.writePSR(104, data);
}
public void receive(int data) {
- logger.trace("receive(" + data + ")");
+ logger.trace("receive(0x" + Integer.toHexString(data) + ")");
listeners.putPSR102Callback(data);
}
More information about the libbluray-devel
mailing list