From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFC3b-0006Hu-90 for qemu-devel@nongnu.org; Mon, 30 Nov 2009 14:37:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFC3W-0006Bt-8N for qemu-devel@nongnu.org; Mon, 30 Nov 2009 14:37:10 -0500 Received: from [199.232.76.173] (port=42965 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFC3W-0006Bf-1t for qemu-devel@nongnu.org; Mon, 30 Nov 2009 14:37:06 -0500 Received: from liberdade.minaslivre.org ([72.232.254.139]:35122) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NFC3V-0002iL-Iz for qemu-devel@nongnu.org; Mon, 30 Nov 2009 14:37:05 -0500 From: Thadeu Lima de Souza Cascardo Date: Mon, 30 Nov 2009 17:36:54 -0200 Message-Id: <1259609814-16224-1-git-send-email-cascardo@holoscopio.com> Subject: [Qemu-devel] [PATCH 1/2] ide: Use some already defined page macros instead of constants List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Thadeu Lima de Souza Cascardo Some PAGE constants were used instead of the macros we already have defined in internal.h. Signed-off-by: Thadeu Lima de Souza Cascardo --- hw/ide/core.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ide/core.c b/hw/ide/core.c index 7b1ff8f..b551adf 100644 --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -1236,7 +1236,7 @@ static void ide_atapi_cmd(IDEState *s) switch(action) { case 0: /* current values */ switch(code) { - case 0x01: /* error recovery */ + case GPMODE_R_W_ERROR_PAGE: /* error recovery */ cpu_to_ube16(&buf[0], 16 + 6); buf[2] = 0x70; buf[3] = 0; @@ -1255,7 +1255,7 @@ static void ide_atapi_cmd(IDEState *s) buf[15] = 0x00; ide_atapi_cmd_reply(s, 16, max_len); break; - case 0x2a: + case GPMODE_CAPABILITIES_PAGE: cpu_to_ube16(&buf[0], 28 + 6); buf[2] = 0x70; buf[3] = 0; -- 1.6.3.3