Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3352648rwi; Fri, 21 Oct 2022 15:20:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6MIisK8FcROU00tpZUfBeEr86qpyYfoGVTed084WvBhk0GiWHLcO6AI2kYTalCRWFWx6Zx X-Received: by 2002:a63:e211:0:b0:43b:f03e:3cc5 with SMTP id q17-20020a63e211000000b0043bf03e3cc5mr18156370pgh.256.1666390839891; Fri, 21 Oct 2022 15:20:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666390839; cv=none; d=google.com; s=arc-20160816; b=rwN6D7iBfcbbXmLHiLaB+vzhQ7Qcr+wZHAa4Ivy7GdOQRr9yVPyzZZOb/9xgvSRCeM YULrrofNfM9oWzeCHCIU72UlJ4fIujgZ8HIUhQHh45mxHK/imD4GspNiof41JRmFVfT0 jP/rEGCTvbfO7rTIGUIuQZhkjqCFlIlQptvYbX0pPimX99ewxOWCg22oAz4iYpQn9kS0 rqyhUH4WWLCzSzq6n2MpAqryzP2qzBIkrUl6fxmEU2RKxO3bo6HpM8f7H2h0mZp52V8N j+cA1dmgFcc42Tqqd8U13xTOggDwvNV5/kvruhb9cnn/tzNnPVyko93TE4Sq8cA8nFIM W48Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FkcAxJz5UaV/gOoKQ5YqYMglqfBBTV2T6cx36FG5wQc=; b=CvL+MLUXY5QRY6OdwIe81AHdIQW94VV4VIY+UjBPyW8ILASfmZ/Nc989KhB/53wgu9 m/jCMcR39fsEVd1bZZUw1qMELxXYCMU7k3xjjgdHK0nLdhJEkewbQ2VLHrThiT8dOhg+ jBmc+2waOfmpkm48oeayjOvEOCiD8/R3RYdcOlIAs98K2IIxoX82mkKf8TNbu8OhEAkG PnQt2bi5e9igG6eBep6H6JQE+MN3TmcIh4CPLrVbVg1qMfeQD2oZ7U06e+LZzgP1UfK9 V5gY6swQXXtIRog5rfLswrX6PKZo8qR9pM/D9SUe957DpzC8JGd2HhE8Kst/ayl/1HUj yy8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=Sz88s7fj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020a056a0021c200b0054d5253e7d7si6274357pfj.190.2022.10.21.15.20.27; Fri, 21 Oct 2022 15:20:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=Sz88s7fj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229716AbiJUWSe (ORCPT + 99 others); Fri, 21 Oct 2022 18:18:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229915AbiJUWS2 (ORCPT ); Fri, 21 Oct 2022 18:18:28 -0400 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 566992AB11C for ; Fri, 21 Oct 2022 15:18:25 -0700 (PDT) Received: by mail-io1-xd34.google.com with SMTP id d142so3476416iof.7 for ; Fri, 21 Oct 2022 15:18:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FkcAxJz5UaV/gOoKQ5YqYMglqfBBTV2T6cx36FG5wQc=; b=Sz88s7fjekFj/AV26xOLEymhM3uxOHkIsuexheI2cWmJmITgqMJnr6heCXWUiUcafn Ye40LPs16A7SZaXogZy8xm3jQrBbJ7luV2Gwgkb+sU69uFDtQ9J+RRd24pBz5vUFkRM8 G+NDC+UTbDtvoKMqcdLyT9Y8VfzY9cVRIaWYQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FkcAxJz5UaV/gOoKQ5YqYMglqfBBTV2T6cx36FG5wQc=; b=N5/G1wpSUmYClBLM+xoM575nw8vIjw677yPZRTuW3HJ4yxnxLrMCNla9IKA7+zWX5k F1taag67h/E0NZiUvA5G20ZJb98bw+2jRiiHllxcrzsq+1ggWy+kHk+awcvrMmil+Y52 hTt/iMw3IHSmrFv422Swj4SRuCyIGYOZfaIZNqhYF5RlWtYqY7oo4Hs7Z326aTScaIRq ZcX+GfNun7jyiqu9GwXZxzs09LATXNKM+8K9wjldhBw0ZxfsSPFd5ckzhCg4BJ/s5a8M lJIciMe6mdeHw7tL054ROhQ65Q5KMQi4/SYQmABk++5OeeU3JBZIedKNqPADKMUz3WJw pVRg== X-Gm-Message-State: ACrzQf1eyx1aOPwX0BT8rLluddqSinpC6LN0ILZjvxtQTsJEK0Yu0z2k CqVlYWNN0Ay/Gcl2Dg6lZ3ZS6qLv3qvh6Q== X-Received: by 2002:a6b:671e:0:b0:6bb:f05a:fb11 with SMTP id b30-20020a6b671e000000b006bbf05afb11mr14278642ioc.74.1666390704312; Fri, 21 Oct 2022 15:18:24 -0700 (PDT) Received: from shuah-tx13.internal ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id cp6-20020a056638480600b0036cc14af7adsm430740jab.149.2022.10.21.15.18.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Oct 2022 15:18:23 -0700 (PDT) From: Shuah Khan To: skhan@linuxfoundation.org, shuah@kernel.org Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] selftests/watchdog: print watchdog_info option strings Date: Fri, 21 Oct 2022 16:18:18 -0600 Message-Id: <2fb04f40e3d3a35fd2b30896202931cf5b9a1311.1666390362.git.skhan@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change show watchdog_info output to print option strings instead of hex values to make it user friendly and human readable. Signed-off-by: Shuah Khan --- tools/testing/selftests/watchdog/watchdog-test.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/testing/selftests/watchdog/watchdog-test.c b/tools/testing/selftests/watchdog/watchdog-test.c index e6af6e327eb3..03103eaa946c 100644 --- a/tools/testing/selftests/watchdog/watchdog-test.c +++ b/tools/testing/selftests/watchdog/watchdog-test.c @@ -6,7 +6,6 @@ * - Could be tested against softdog driver on systems that * don't have watchdog hadrware. * - TODO: -* - Enhance coverage of ioctl return values - flags and status. * - Enhance test to add coverage for WDIOC_GETTEMP. * * Reference: Documentation/watchdog/watchdog-api.rst @@ -314,7 +313,7 @@ int main(int argc, char *argv[]) printf(" identity:\t\t%s\n", info.identity); printf(" firmware_version:\t%u\n", info.firmware_version); - printf(" options:\t\t%08x\n", info.options); + print_status(info.options); break; default: -- 2.34.1