From patchwork Mon Aug 28 22:12:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Corey Minyard X-Patchwork-Id: 111179 Delivered-To: patch@linaro.org Received: by 10.37.128.210 with SMTP id c18csp5442110ybm; Mon, 28 Aug 2017 15:15:24 -0700 (PDT) X-Received: by 10.200.13.142 with SMTP id s14mr2982537qti.162.1503958524469; Mon, 28 Aug 2017 15:15:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503958524; cv=none; d=google.com; s=arc-20160816; b=VXMwyb8+bG4kQP7I3hOXi2+h1vognZJzhUnuNcUw5VQAeGbss8i8ANtuXfudVtKRrQ +tc7edLPEfYf30eMRy2zJdZtq1argak5P3mGSnsOlgKinUicQ/ip2ZcuJ0d0BLk3ut5V hJbo1lcpOL20eupKIY/VXfI3vmLqhvrft7sPU+zkTvQZ6A65W3o7B8cgZBpKj6eWJMyW 953c6Ze6fLPn3ckeifCYB91C/+ujnJj9gTeHngltzDBo13Q3+EvSSKaLFmicRpOe3bKd FrRVlxK04z3rNi2MQAXwznVBsunVScbRn31dXNyBQjPkGOeC4ToC5ijN7YZXP2+gPjtl QcDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=WTeBqdQtfRYcWqJwQfs3vBs8+Sgu29U16AqBLX3IgL8=; b=TJWMLSjUfi1EPPoE0B8HfxIyMeHJthpsfjICgWhvmopBfMRqiU8iK5EbXyQVfpLMtn iFBilreHlepF6SqqhUijMvaDOg6zAg9r2toq0O5iB62a1sRAKxBp38uAfGc0h2qH8zt+ sRVBOkeCZN7cHmFeDWqCiTCKK36+/7EDLpJ4iBH5hV4wB7E/YLe8jh0i1YMYI0KIdY3h GVsiN4SFuMuG/QehDpzhAVlZoUSiU7qqJ2AZlsb5mP8yQGxBtihxAzD7JWzhsNuSHf6E xptzZxwvnQVpZkp3KZr6PuBMM4tFeHcr46s5BWJk/3g7dbhZk62nk5OlRdTrXY6Pe0VX 8Mfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=hJXVP++L; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 74si1455498qkt.443.2017.08.28.15.15.24 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 28 Aug 2017 15:15:24 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=hJXVP++L; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Received: from localhost ([::1]:41629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmSJW-0006pf-Eq for patch@linaro.org; Mon, 28 Aug 2017 18:15:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmSGe-0005HE-Bv for qemu-devel@nongnu.org; Mon, 28 Aug 2017 18:12:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmSGb-0000ZU-FU for qemu-devel@nongnu.org; Mon, 28 Aug 2017 18:12:24 -0400 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]:38183) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dmSGb-0000YE-A8 for qemu-devel@nongnu.org; Mon, 28 Aug 2017 18:12:21 -0400 Received: by mail-pg0-x243.google.com with SMTP id t3so1273026pgt.5 for ; Mon, 28 Aug 2017 15:12:19 -0700 (PDT) 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=WTeBqdQtfRYcWqJwQfs3vBs8+Sgu29U16AqBLX3IgL8=; b=hJXVP++L1sLxBV+wUKSYmMt9q80wFdHNNOs+L7r31JtM1u7yP9qpMUd3JEts4TSyTX 7o1eq8ntFqB6BIHY7tydCgm39fesM4ZgsXLg/e/pnXXhHq+nOMIHgElaihBW6RqR2q6k 2BO5fShpkynRT1qKW8GZ18OvlvIHd9YSRMwZG2+qPHFCo+Lpd9tiXXFXWhA2gDfPlkdT Tpy25S5ef4s3ZoPzFbgLiwVV6SnGSjRC59+XE9j8c2Vob4X9zTQo+nckSi/opthsSrZn TBpQgr8oHcHV0vO2cHUXFJytuJCickOrIKYlKmCZejCYVAnJAr+Sr3ZsqrIE+DX6ZcCD m1zA== 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=WTeBqdQtfRYcWqJwQfs3vBs8+Sgu29U16AqBLX3IgL8=; b=Q0jWfw7YjK6qSuo7BjwoEdume12xNl2vIAzhEmE40FBHumHKV2QiSSB6tNlInv3/4z 316I6r5VE3h6QBP27wVLtSCPKUkwvl98XPnnYQo1J18len1/EAduxUnUQwK6SYKBm2ZV CDZcLCRhKmdXZdQNUERvJi2hUs/Enpy5r/c6glQAUYB6a0P4x8EZchiz/S0PFWp6kui1 sC2p/+kyjhosWe8I7+MTQ676vHMJrSLepVKYyB/YTWJpb5QZz4OuWBpSMUawrhaWfvYC YOUM88kaQsvdWmCXjoWvjTK2xtIYhhwgpMxI9pGJH8Vh/UwHLTWrmGyZZV/6DIDrqBDr 5JKA== X-Gm-Message-State: AHYfb5hYsCucgWzau02GTiQLQ4V2tCGwFpiRaqjiJPOBaJHQVoJAHuPy 5sYbBseCKmjXSA== X-Received: by 10.84.224.207 with SMTP id k15mr2407979pln.91.1503958338939; Mon, 28 Aug 2017 15:12:18 -0700 (PDT) Received: from serve.minyard.net ([47.184.154.34]) by smtp.gmail.com with ESMTPSA id z83sm2130957pfd.10.2017.08.28.15.12.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Aug 2017 15:12:16 -0700 (PDT) Received: from t430.minyard.net (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPA id 02AFC283; Mon, 28 Aug 2017 17:12:14 -0500 (CDT) Received: by t430.minyard.net (Postfix, from userid 1000) id E18173023BE; Mon, 28 Aug 2017 17:12:13 -0500 (CDT) From: minyard@acm.org To: =?utf-8?q?C=C3=A9dric_Le_Goater?= , qemu-devel@nongnu.org Date: Mon, 28 Aug 2017 17:12:08 -0500 Message-Id: <1503958330-14083-2-git-send-email-minyard@acm.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503958330-14083-1-git-send-email-minyard@acm.org> References: <1503958330-14083-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:400e:c05::243 Subject: [Qemu-devel] [PATCH v3 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 , David Gibson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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 --- hw/ipmi/ipmi_bmc_sim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 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 = {