From nobody Sun Feb 8 17:48:05 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1503265756532123.98985715407878; Sun, 20 Aug 2017 14:49:16 -0700 (PDT) Received: from localhost ([::1]:35283 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djY5r-0000Al-9w for importer@patchew.org; Sun, 20 Aug 2017 17:49:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djY3e-0007Fd-99 for qemu-devel@nongnu.org; Sun, 20 Aug 2017 17:46:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1djY3a-0003q2-Bs for qemu-devel@nongnu.org; Sun, 20 Aug 2017 17:46:58 -0400 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]:36557) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1djY3a-0003pG-5D for qemu-devel@nongnu.org; Sun, 20 Aug 2017 17:46:54 -0400 Received: by mail-pg0-x243.google.com with SMTP id y129so20854746pgy.3 for ; Sun, 20 Aug 2017 14:46:51 -0700 (PDT) Received: from serve.minyard.net ([47.184.154.34]) by smtp.gmail.com with ESMTPSA id s86sm177078pfi.78.2017.08.20.14.46.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Aug 2017 14:46:48 -0700 (PDT) Received: from t430.minyard.net (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPA id BAA8A456; Sun, 20 Aug 2017 16:46:46 -0500 (CDT) Received: by t430.minyard.net (Postfix, from userid 1000) id 57C6C300013; Sun, 20 Aug 2017 16:46:44 -0500 (CDT) 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; bh=pTdSKgEIBjW97bSKTMLbxRxHezKRF33Mzoq2+Yc+aIE=; b=Jlsx7+pUfI+ugbbpLfV94H7JgKPceWS68mPvhYGHwPOqx+qosJPCwSvQW98HSbdwWA GIZ9KArYcedrbnwtGAYq17hfcASprtmUMI4TtF5Sp9L9MFl9VAqtiwfskbcbogSTG3ce S9aGTKzjrrFICWFJaEekJeQgdxUMgDpAinfL47MEmVaK4k35PKGRyuY/hfwe2oFRc5or gmZiSrVDelTlO3qRyg00sBlW9YyPgN25FQdBIlEn3LzUlo0u5WoRkWf+0aTroIyPxXk0 4mWVFPmP5JZUXoJV5lvsq3M6ppsdIeptyoHdPCl3Ll9gdOY1uvs1BNmOQ18VKAXq/wlq d8DA== 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; bh=pTdSKgEIBjW97bSKTMLbxRxHezKRF33Mzoq2+Yc+aIE=; b=Qp/10K5x1KWovdQXuSFvH26hksF4ZfdCKCcUMVWQIa7TkDSblWA5sFFWz8egMoArA3 1SQH3nt0BzBcgrR5aA/OPVs91tXGYv83fHe1vTUZqShFZkkR1JfJ10pZcODdCFSCAjve +de4FEpbSn6Bw2ZvbQ3YeMr1zmKhk7E1OKREXvAJxPRZfe8p2PzKX2Nx5BvqzmjtLucB f/CH1A/BzbPzMz4cx1rimvsFstJIeHHuIWgJq+jrV43vRIoXBpaU6/Abm8L0sTgkaQma sB/+a23sjS2kV5/RdxTKLv5o28PHrkgJRt8iZ8X7v8/6w6htj+lQjhKTdU6zYF+bzGkd H1kQ== X-Gm-Message-State: AHYfb5jjv7nMPoccPEuh3ngfdkDoNKR3+PvBqdsaSPlz5sAv6zuQoqFW AGhS0GhnwC9MxA== X-Received: by 10.98.9.199 with SMTP id 68mr8124837pfj.142.1503265610294; Sun, 20 Aug 2017 14:46:50 -0700 (PDT) From: minyard@acm.org To: qemu-devel@nongnu.org Date: Sun, 20 Aug 2017 16:46:40 -0500 Message-Id: <1503265602-9349-2-git-send-email-minyard@acm.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503265602-9349-1-git-send-email-minyard@acm.org> References: <1503265602-9349-1-git-send-email-minyard@acm.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::243 Subject: [Qemu-devel] [PATCH v2 1/3] 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: Corey Minyard , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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=C3=A9dric Le Goater --- 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[] =3D { [IPMI_CMD_GET_SEL_ENTRY] =3D { get_sel_entry, 8 }, [IPMI_CMD_ADD_SEL_ENTRY] =3D { add_sel_entry, 18 }, [IPMI_CMD_CLEAR_SEL] =3D { clear_sel, 8 }, - [IPMI_CMD_GET_SEL_TIME] =3D { get_sel_time, 6 }, - [IPMI_CMD_SET_SEL_TIME] =3D { set_sel_time }, + [IPMI_CMD_GET_SEL_TIME] =3D { get_sel_time }, + [IPMI_CMD_SET_SEL_TIME] =3D { set_sel_time, 6 }, }; =20 static const IPMINetfn storage_netfn =3D { --=20 2.7.4