From patchwork Tue Jan 16 00:57:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Corey Minyard X-Patchwork-Id: 10165607 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7E9D7601E7 for ; Tue, 16 Jan 2018 00:59:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F32D269B2 for ; Tue, 16 Jan 2018 00:59:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 644C226E75; Tue, 16 Jan 2018 00:59:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6AA01269B2 for ; Tue, 16 Jan 2018 00:59:28 +0000 (UTC) Received: from localhost ([::1]:49555 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebFb5-0000LI-Dj for patchwork-qemu-devel@patchwork.kernel.org; Mon, 15 Jan 2018 19:59:27 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebFZu-0007s6-9D for qemu-devel@nongnu.org; Mon, 15 Jan 2018 19:58:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebFZr-0000kT-Au for qemu-devel@nongnu.org; Mon, 15 Jan 2018 19:58:14 -0500 Received: from mail-ot0-x244.google.com ([2607:f8b0:4003:c0f::244]:33241) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebFZr-0000iy-61 for qemu-devel@nongnu.org; Mon, 15 Jan 2018 19:58:11 -0500 Received: by mail-ot0-x244.google.com with SMTP id x15so12201199ote.0 for ; Mon, 15 Jan 2018 16:58:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MLnDMEiGXNLnJ8nY3azyjqRx81CXcJgMOa0TSSywrj0=; b=m7G609S4gpBeL0RRfoRMGZOeo0A1J6fA0Tptyv6abSRlFpV9ddqGI4sw62hw7N5f8G Oqo3/rK+6z6s3tvd7Stjr/qBqQ62jRuvsqep2/7+IDFWtvia2gcyCavRoBTVGQyrC83E +UHQ4lFnFh4Jt+rTSvGtWafj73wJYIcv405Gg6eKCNZ8Zef3+3arn3uhJnjGO1oztLWh RiTouqYdgY8U1SkhPlP+Dv957Gvl2ElRSlfbYARgwW3aD2S5mOu31d+Yp42sU7UUY41X B0HtdVQ7g31idBAdwKnXbtDNnmn7k+yvHj6g19zy3qcLY77VX1p6WSx3J4Lh/AnUohPG BheQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=MLnDMEiGXNLnJ8nY3azyjqRx81CXcJgMOa0TSSywrj0=; b=CFE2EKdYkQgaMorslcylOd8N0Wr1uYSBzIMKKbU6Es/kN6EjUZrv++2r3OOHuz0awz RVaG0J0zKdM1DB6fAlFtkhsZeB8q8NtQGAyM5QszUjpXEcblnruYc165xBn1pz64WdlU otCJECg4JUDrBH1iW63xUsVyAOLgKWuZk38gyl3z8qn4NalTwJxj+aGwokOsPtnBU/zc ++TIGoWmXUjci5AjAOEvuFR6F93s6hEixZhRUXZAe6dW1zUd/HFEou3sDp26KbuDOuya e86Hio/tnGc3ZW/BMc4BqC5Zby4DeATHAehWZ0WkXDEevQ8+pa0PVLdahmSrRNdgtoid CTEA== X-Gm-Message-State: AKwxyte52aYmZxKGtJsx/9cAbaEqBLqxEU4Worn78h709u7k54B0RkMo MuTBbxmj6BeZYSok4aoo5Q== X-Google-Smtp-Source: ACJfBoswGwHaK/ffSLAYI5DcRER/Bzik6/34UgAlkA+DG7MF70Rdan7qvoH1MyI5zglWAJZw7zRYOA== X-Received: by 10.157.64.195 with SMTP id t3mr3263881oti.28.1516064290004; Mon, 15 Jan 2018 16:58:10 -0800 (PST) Received: from serve.minyard.net ([47.184.168.85]) by smtp.gmail.com with ESMTPSA id x139sm455154oia.10.2018.01.15.16.58.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jan 2018 16:58:09 -0800 (PST) Received: from t430.minyard.net (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPA id 0DCDF8F8; Mon, 15 Jan 2018 18:58:07 -0600 (CST) Received: by t430.minyard.net (Postfix, from userid 1000) id 7EDA33000A9; Mon, 15 Jan 2018 18:58:03 -0600 (CST) From: minyard@acm.org To: qemu-devel@nongnu.org Date: Mon, 15 Jan 2018 18:57:54 -0600 Message-Id: <1516064279-14816-3-git-send-email-minyard@acm.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516064279-14816-1-git-send-email-minyard@acm.org> References: <1516064279-14816-1-git-send-email-minyard@acm.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::244 Subject: [Qemu-devel] [PATCH 2/7] ipmi: Fix SEL get/set time commands X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Corey Minyard Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Corey Minyard The minimum message size was on the wrong commands, for getting the time it's zero and for setting the time it's 6. Signed-off-by: Corey Minyard Reviewed-by: Cédric Le Goater Reviewed-by: Marc-André Lureau --- hw/ipmi/ipmi_bmc_sim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ipmi/ipmi_bmc_sim.c b/hw/ipmi/ipmi_bmc_sim.c index 277c28c..cc068f2 100644 --- a/hw/ipmi/ipmi_bmc_sim.c +++ b/hw/ipmi/ipmi_bmc_sim.c @@ -1802,8 +1802,8 @@ static const IPMICmdHandler storage_cmds[] = { [IPMI_CMD_GET_SEL_ENTRY] = { get_sel_entry, 8 }, [IPMI_CMD_ADD_SEL_ENTRY] = { add_sel_entry, 18 }, [IPMI_CMD_CLEAR_SEL] = { clear_sel, 8 }, - [IPMI_CMD_GET_SEL_TIME] = { get_sel_time, 6 }, - [IPMI_CMD_SET_SEL_TIME] = { set_sel_time }, + [IPMI_CMD_GET_SEL_TIME] = { get_sel_time }, + [IPMI_CMD_SET_SEL_TIME] = { set_sel_time, 6 }, }; static const IPMINetfn storage_netfn = {