From 30358ffd56111dc781e9455d0e938e7a506bd814 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Tue, 14 May 2013 20:43:09 -0700 Subject: [PATCH] TESTS: BlockLimits VPD. If a device returns a SBC-3 VPD (page length 0x3c) but does not claim SBC-3 support then print a harsh warning about this. --- test-tool/test_inquiry_block_limits.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test-tool/test_inquiry_block_limits.c b/test-tool/test_inquiry_block_limits.c index df65c48..098a407 100644 --- a/test-tool/test_inquiry_block_limits.c +++ b/test-tool/test_inquiry_block_limits.c @@ -75,6 +75,11 @@ test_inquiry_block_limits(void) switch (bl_task->datain.data[3]) { case 0x3c: /* accept 0x3c (==SBC-3) for all levels */ + if (!sbc3_support) { + logging(LOG_NORMAL, "[WARNING] SBC-3 pagelength (0x3C) " + "returned but SBC-3 support was not claimed " + "in the standard inquiry page."); + } break; case 0x0c: /* only accept 0x0c for levels < SBC-3 */