From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4123621CF1CEF for ; Tue, 13 Feb 2018 05:19:15 -0800 (PST) From: Jeff Moyer Subject: Re: [PATCH] ndctl: add option to list firmware information for a DIMM References: <151848066201.13592.3757378386488366418.stgit@djiang5-desk3.ch.intel.com> Date: Tue, 13 Feb 2018 08:25:04 -0500 In-Reply-To: <151848066201.13592.3757378386488366418.stgit@djiang5-desk3.ch.intel.com> (Dave Jiang's message of "Mon, 12 Feb 2018 17:11:02 -0700") Message-ID: MIME-Version: 1.0 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: Dave Jiang Cc: linux-nvdimm@lists.01.org List-ID: Hi, Dave, Dave Jiang writes: > Adding firmware output of firmware information when ndctl list -D -F is used. > Components displayed are current firmware version, updated firmware version, > and if a coldboot is required (firmware updated). > > Signed-off-by: Dave Jiang > --- > Documentation/ndctl/ndctl-list.txt | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > @@ -420,6 +422,25 @@ int cmd_list(int argc, const char **argv, void *ctx) > } > } > > + if (list.firmware) { > + struct json_object *jfirmware; > + > + jfirmware = util_dimm_firmware_to_json(dimm); > + if (jfirmware) > + json_object_object_add(jdimm, > + "firmware", > + jfirmware); > + else if (ndctl_dimm_is_cmd_supported(dimm, > + ND_CMD_CALL)) { > + /* > + * Failed to retrieve firmware > + * version. > + */ > + fail("\n"); I'm hitting this failure. Also, you might consider adding some text, there. :) -Jeff _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm