Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8030997imu; Tue, 4 Dec 2018 01:33:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/V5I8tW4wqFoBT5X4MHyY4h0/M5Mrg+8P1TMFvteVH6gmDTOG55UoNbT4553brPCAN/OLZf X-Received: by 2002:a17:902:a5c3:: with SMTP id t3mr9797058plq.117.1543916023089; Tue, 04 Dec 2018 01:33:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543916023; cv=none; d=google.com; s=arc-20160816; b=PN5UTgLYblIGtVW08svD2qVXDqWmdr2neqJAbd471LR25Rl8l45KiPMe5l90AHrLpp 0Vg0gVT+Az7OUir4e8tAZwiev4d8JCrtWT3gAq2rwVyxi5QOJwfZlW42e9CLgYm0DjMK Aaon22mXXNfCGXjydScdxgjIUHwY+Is6420VSu0Jqbll1jkD4RE1e8WLwo5LKB/+xcBp pzqt/DfwyJoERVZz/S56BDlF1D1sPaLbLTABVbbP/Yy3R7OCcUG9VrETLn6IwuRZLI0u X9HhvUc+3MK31n7cZn5EWtIJ+hFE1MNkOvPIwWpASqfEVPHQ3s6ByoyU+Qx7uyvQpgQc LVOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:subject:cc:to:from :date:content-transfer-encoding:mime-version:dkim-signature :dkim-signature; bh=GOYhnQNJqqFIT+8IdKoZbMXOgH5ARvhz67VD6p/DhHQ=; b=wFUtjnqCi0GxKya1+j8t6Sa6enhcViFXikGheZJBFqiASTmBuY9zCtoCiOj4ygTMpa m+G6iMIf6x9Ds7G78cEHo6FdSHzm14IJgCvZ55gPDoMxEW2kt3aHLQXOb8LD0v8B9McT 6wALXjv/cuuDeTCRh3Z4kSji2Ya3FfunUBflK8QafPR+t2uu8o5pJon7Tl7y6vlewg5f 88/tKchYR7i82gruYrMW+Di6Nqlo07VpcpAjOW6PF7Gn9y55X3UJIMwVQ8LgeFZDlrne 9dfd4qUvPD0+YkGHTlpOlsxyO/Y0qrc1kplp5J1avPVWDG58Fh8W5zE3rsHh0S92K6n+ gEKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=UeawtK66; dkim=pass header.i=@codeaurora.org header.s=default header.b=b8U+8Xr8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si4159909plz.263.2018.12.04.01.32.41; Tue, 04 Dec 2018 01:33:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=UeawtK66; dkim=pass header.i=@codeaurora.org header.s=default header.b=b8U+8Xr8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726058AbeLDJ3E (ORCPT + 99 others); Tue, 4 Dec 2018 04:29:04 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:36264 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725767AbeLDJ3E (ORCPT ); Tue, 4 Dec 2018 04:29:04 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 73C8861661; Tue, 4 Dec 2018 09:29:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1543915743; bh=S4rnCLAEYzUqxRh1KMVkzX/Tmng5R/aHYsuksyr8VbY=; h=Date:From:To:Cc:Subject:From; b=UeawtK66cXsmcrj1LPU4pO1xmA4FS3HwcGvE+zhGwrPkmqwBmI9IHX4b218zZSYBm GbZkeao2j0tmaRofeLv9ohv0ys2+wINVwzx7iemEfMfxPR2pmsUHE/lBS99ICdOlE6 keJRO2/zO2FLf5+HgcmHs/DV4tDfqiuzaJYvnIKg= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 70AED61657; Tue, 4 Dec 2018 09:29:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1543915742; bh=S4rnCLAEYzUqxRh1KMVkzX/Tmng5R/aHYsuksyr8VbY=; h=Date:From:To:Cc:Subject:From; b=b8U+8Xr8pjqQ7CmS+4y50jaJAylE9mHCCIhMP2xv9JFLS/JJgCcXzWbRN18vN7ELD a1LACNWq3twMEE7KcPmxffnKaSxCFxCieslwj674W2o6lzr04YGxttYAG6glEMb77w 9pwpwkBD0dinMEvcPfLu9sXafOwdYYtRVfXJ67sk= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 04 Dec 2018 17:29:02 +0800 From: yuankuiz@codeaurora.org To: a.zummo@towertech.it, alexandre.belloni@bootlin.com Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] rtc: proc: printf using alarm for alrm Message-ID: X-Sender: yuankuiz@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, From 549bae59445c5ec67dd6a46f3ea4f58966d40c9b Current the struct rtc_wkalrm is dumped as "alrm_" by printing converted from the struct name of "alrm.*" directly. Shall we use the "alarm *" to replace the "alrm_*" during this dumping? Signed-off-by: John Zhao --- drivers/rtc/rtc-proc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/rtc/rtc-proc.c b/drivers/rtc/rtc-proc.c index a9dd921..d4a3c91 100644 --- a/drivers/rtc/rtc-proc.c +++ b/drivers/rtc/rtc-proc.c @@ -58,7 +58,7 @@ static int rtc_proc_show(struct seq_file *seq, void *offset) err = rtc_read_alarm(rtc, &alrm); if (err == 0) { - seq_printf(seq, "alrm_time\t: "); + seq_printf(seq, "alarm time\t: "); if ((unsigned int)alrm.time.tm_hour <= 24) seq_printf(seq, "%02d:", alrm.time.tm_hour); else @@ -72,7 +72,7 @@ static int rtc_proc_show(struct seq_file *seq, void *offset) else seq_printf(seq, "**\n"); - seq_printf(seq, "alrm_date\t: "); + seq_printf(seq, "alarm date\t: "); if ((unsigned int)alrm.time.tm_year <= 200) seq_printf(seq, "%04d-", alrm.time.tm_year + 1900); else @@ -85,9 +85,9 @@ static int rtc_proc_show(struct seq_file *seq, void *offset) seq_printf(seq, "%02d\n", alrm.time.tm_mday); else seq_printf(seq, "**\n"); - seq_printf(seq, "alarm_IRQ\t: %s\n", + seq_printf(seq, "alarm IRQ\t: %s\n", alrm.enabled ? "yes" : "no"); - seq_printf(seq, "alrm_pending\t: %s\n", + seq_printf(seq, "alarm pending\t: %s\n", alrm.pending ? "yes" : "no"); seq_printf(seq, "update IRQ enabled\t: %s\n", (rtc->uie_rtctimer.enabled) ? "yes" : "no"); -- 2.7.4