From patchwork Mon Jul 27 01:51:52 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Rui X-Patchwork-Id: 37439 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n6R1pYqS024549 for ; Mon, 27 Jul 2009 01:51:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754420AbZG0Bvd (ORCPT ); Sun, 26 Jul 2009 21:51:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754555AbZG0Bvd (ORCPT ); Sun, 26 Jul 2009 21:51:33 -0400 Received: from mga09.intel.com ([134.134.136.24]:53466 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754420AbZG0Bvc (ORCPT ); Sun, 26 Jul 2009 21:51:32 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 26 Jul 2009 18:38:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.43,273,1246863600"; d="scan'208";a="433540348" Received: from rzhang-dt.sh.intel.com (HELO [10.239.36.207]) ([10.239.36.207]) by orsmga002.jf.intel.com with ESMTP; 26 Jul 2009 18:58:18 -0700 Subject: [PATCH] ACPI video: print device attribute in Hex format From: Zhang Rui To: Len Brown Cc: linux-acpi , "Zhang, Rui" Date: Mon, 27 Jul 2009 09:51:52 +0800 Message-Id: <1248659512.2670.114.camel@rzhang-dt> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 (2.22.1-2.fc9) Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org _DOD returns 32-bit device attribute of a video device, with bit 31 set in many cases. We should print the device attribute in hex format, to fix the problem like this: video-1886 [00] video_device_enumerate: dod element[0] = -2147483392 Signed-off-by: Zhang Rui --- drivers/acpi/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-2.6/drivers/acpi/video.c =================================================================== --- linux-2.6.orig/drivers/acpi/video.c +++ linux-2.6/drivers/acpi/video.c @@ -1882,7 +1882,7 @@ static int acpi_video_device_enumerate(s active_list[count].value.int_val = obj->integer.value; active_list[count].bind_info = NULL; - ACPI_DEBUG_PRINT((ACPI_DB_INFO, "dod element[%d] = %d\n", i, + ACPI_DEBUG_PRINT((ACPI_DB_INFO, "dod element[%d] = %x\n", i, (int)obj->integer.value)); count++; }