libaacs | branch: master | npzacs <npz...@gmail.com> | Tue Oct 15 09:35:39 2013 
+0300| [05e66147394a2b4c8acf4948c99c806f28bd21b6] | committer: npzacs

_mmc_check_aacs(): print flags as 0 or 1

> http://git.videolan.org/gitweb.cgi/libaacs.git/?a=commit;h=05e66147394a2b4c8acf4948c99c806f28bd21b6
---

 src/libaacs/mmc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libaacs/mmc.c b/src/libaacs/mmc.c
index 2ee82cb..bd62b9c 100644
--- a/src/libaacs/mmc.c
+++ b/src/libaacs/mmc.c
@@ -508,8 +508,8 @@ static int _mmc_check_aacs(MMC *mmc)
             DEBUG(DBG_MMC, "  AACS active: %d\n", buf[2+8] & 1);
             DEBUG(DBG_MMC, "  Binding Nonce generation support: %d\n", 
buf[4+8] & 1);
             DEBUG(DBG_MMC, "  Binding Nonce block count: %d\n", buf[5+8]);
-            DEBUG(DBG_MMC, "  Bus encryption support: %d\n", buf[4+8] & 2);
-            DEBUG(DBG_MMC, "  Read drive certificate: %d\n", buf[4+8] & 0x10);
+            DEBUG(DBG_MMC, "  Bus encryption support: %d\n", !!(buf[4+8] & 2));
+            DEBUG(DBG_MMC, "  Read drive certificate: %d\n", !!(buf[4+8] & 
0x10));
             DEBUG(DBG_MMC, "  AGID count: %d\n", buf[6+8] & 0xf);
 
             mmc->read_drive_cert = !!(buf[4+8] & 0x10);

_______________________________________________
libaacs-devel mailing list
libaacs-devel@videolan.org
https://mailman.videolan.org/listinfo/libaacs-devel

Reply via email to