Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp630731pxb; Wed, 16 Feb 2022 00:22:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxj23GTyaPWee659eDCsPmTKLkyuNlJfTplMqEO/OW+vTPQQfnV5dV8KNuTrDHbUBJDOJJ8 X-Received: by 2002:a17:902:760e:b0:14f:26a6:cdef with SMTP id k14-20020a170902760e00b0014f26a6cdefmr1406031pll.149.1644999728903; Wed, 16 Feb 2022 00:22:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644999728; cv=none; d=google.com; s=arc-20160816; b=0uNoZFirTGfc/+2ufxDMcsVcmhWUoZluFXcpJ+gURamsx/A4ihSG2h9rgwyTsIt7h3 z+w2Gez/k6wtlbeqLqdn3DD/4RnUAvLb+pDSRwRWmlbqm/HkrCq8ctzRJU2Dp55hQR0o fJ0LF7I0cyX2BBA36BY5P0g53Gl7dL/bj9wLlRBHbvgLlQ7j5RYihxFQPQ+A8Ww27wnj XUFBx1FWH1ga7AE/ugfJoUJh+xyENtxW3UXtppk/bMQ5+Rk0T5DYz6ig+QVllAIvXpQ0 cAK5KZ/KkJPSg3ZIq3WYtbv9vUjMvcQ3V6+wBPdBJnhrL5vVzXcRMvBoB4zq+A2jy/2w bneg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=cBsOjcPnmLH7/AqklcuehpI9b0p1xbakmUIE5IP9keU=; b=X9U3O6gFW9bI7coJJ6Ol0tmdH76O2NEkeFoTyTum52obX34PUPjSOdgIdxRZwyqJMz z1ZM1daJgfD/UM0WEUjVPn3u6Urd43qlS2CUDZltOuqgalPAwcXj8I0FlHXmgbwn+s+r fT8i1pE7Ti5WOO5X0dEqPnG7KZrA7KNMnko9V7uKETKdm7iDScc5eC9GwHJVPVe68qdX ns2xLmC0tdThwcFCcgx5qvOQKyyfkULHdFOL4V1KChu1tqHzLQnoO7yXHsQ6j7oA+HBQ cC3RHk1JGoOsrMC6efOjby4AHl19kgn6awuvchH/ow4oardDwSAdJL17NIiDMlAw/Ks/ akQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=IOikt31P; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u8si4162757plf.527.2022.02.16.00.22.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 00:22:08 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=IOikt31P; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CFC44DFB7; Wed, 16 Feb 2022 00:04:09 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231384AbiBPIEE (ORCPT + 99 others); Wed, 16 Feb 2022 03:04:04 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:41654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231436AbiBPIEB (ORCPT ); Wed, 16 Feb 2022 03:04:01 -0500 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03B4821D425 for ; Wed, 16 Feb 2022 00:03:41 -0800 (PST) Received: by mail-yb1-xb4a.google.com with SMTP id h6-20020a253a06000000b0061de83305f2so2645537yba.19 for ; Wed, 16 Feb 2022 00:03:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=cBsOjcPnmLH7/AqklcuehpI9b0p1xbakmUIE5IP9keU=; b=IOikt31P2zEAtluISzAwx5beeMxSU+NsFh4G/wCC2BPZHmo5C2myILKNgUnhx7jIsr 5u1gca1R0sgoUJXWzmNxx+IPiBlv93cY3G2d66YrxGpcD9nUwzXrBzESt8m3gnuPVXX9 Z2f4kXgs7fxoOwbtzUyUbhBMrSiwMuGA5+DN52h/GSaGYQU4LEK9G7b7vRskRbg6zNiQ 4ntsP7jnUj2Pb/JpFYBObmW8NZdFH7XwtW+/mdOH8cz9GDqHH9+lHuNeqJx450ymbW1F JEHs9Q0IJmyclfGlwjN8NQUUPF0l48kvAfWwRBA80U8jmjZoHMadvGHdk7mDydWCUGm3 5FWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=cBsOjcPnmLH7/AqklcuehpI9b0p1xbakmUIE5IP9keU=; b=SBzwvYMICKgKsD0hN82XVrKt8ynPO+uXP1M0EtDEgfntytZ4uoWWl7sVoVsU55Q2r3 1idxCRiC10eL3bA3W/BeUwr3EGNmUrkEANqZgzJLTzh9YtZNKMlFn2Ij8syG1Td/iaBz 51yoFFQzaMEXogYIkErZz0wq2NbI6OD7yL5eBOQuq/uN3BZO0DezksKwW38JsfaBfF6o eobjYYWbcDPhbD+/6hE+BRj6KRPEH3Ohg/iLXuwGcv04lGyVfx7rlNbKDv1UVf94AC7q 05jO8ayAeWoYATObkjtANqcbosXVyKlr5EQG7gTyMKVWSAQCclC4doYHL21sQRqs+3ZM VFVQ== X-Gm-Message-State: AOAM530P/Fn0OpPbVUI+SSbeSqF3As3hJarX1r+/F9y+RGy7osEdWNWd 3rqJCtZjjrbg2V93K98+yGQS55grJ3RL X-Received: from tzungbi-z840.tpe.corp.google.com ([2401:fa00:1:10:8ce7:5b2:9787:1a0b]) (user=tzungbi job=sendgmr) by 2002:a0d:ef82:0:b0:2ca:287c:6c5b with SMTP id y124-20020a0def82000000b002ca287c6c5bmr1424157ywe.256.1644998620185; Wed, 16 Feb 2022 00:03:40 -0800 (PST) Date: Wed, 16 Feb 2022 16:03:06 +0800 In-Reply-To: <20220216080306.3864163-1-tzungbi@google.com> Message-Id: <20220216080306.3864163-6-tzungbi@google.com> Mime-Version: 1.0 References: <20220216080306.3864163-1-tzungbi@google.com> X-Mailer: git-send-email 2.35.1.265.g69c8d7142f-goog Subject: [PATCH v5 5/5] platform/chrome: cros_ec: append newline to all logs From: Tzung-Bi Shih To: bleung@chromium.org, groeck@chromium.org Cc: chrome-platform@lists.linux.dev, pmalani@chromium.org, tzungbi@google.com, linux-kernel@vger.kernel.org, Guenter Roeck Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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 To be consistent, append newline ("\n") to all logs. Reviewed-by: Guenter Roeck Reviewed-by: Prashant Malani Signed-off-by: Tzung-Bi Shih --- No changes from v4. Changes from v3: (https://patchwork.kernel.org/project/chrome-platform/patch/20220209095703.517608-7-tzungbi@google.com/) - Add R-b tags. No changes from v2. Changes from v1: (https://lore.kernel.org/lkml/20220125101527.1812887-1-tzungbi@google.com/T/#u) - Use imperative mood in commit message. drivers/platform/chrome/cros_ec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/platform/chrome/cros_ec.c b/drivers/platform/chrome/cros_ec.c index 1e1a24a80d9f..1395c764d938 100644 --- a/drivers/platform/chrome/cros_ec.c +++ b/drivers/platform/chrome/cros_ec.c @@ -215,7 +215,7 @@ int cros_ec_register(struct cros_ec_device *ec_dev) IRQF_TRIGGER_LOW | IRQF_ONESHOT, "chromeos-ec", ec_dev); if (err) { - dev_err(dev, "Failed to request IRQ %d: %d", + dev_err(dev, "Failed to request IRQ %d: %d\n", ec_dev->irq, err); return err; } @@ -266,7 +266,7 @@ int cros_ec_register(struct cros_ec_device *ec_dev) */ err = cros_ec_sleep_event(ec_dev, 0); if (err < 0) - dev_dbg(ec_dev->dev, "Error %d clearing sleep event to ec", + dev_dbg(ec_dev->dev, "Error %d clearing sleep event to ec\n", err); if (ec_dev->mkbp_event_supported) { @@ -337,7 +337,7 @@ int cros_ec_suspend(struct cros_ec_device *ec_dev) ret = cros_ec_sleep_event(ec_dev, sleep_event); if (ret < 0) - dev_dbg(ec_dev->dev, "Error %d sending suspend event to ec", + dev_dbg(ec_dev->dev, "Error %d sending suspend event to ec\n", ret); if (device_may_wakeup(dev)) @@ -382,7 +382,7 @@ int cros_ec_resume(struct cros_ec_device *ec_dev) ret = cros_ec_sleep_event(ec_dev, sleep_event); if (ret < 0) - dev_dbg(ec_dev->dev, "Error %d sending resume event to ec", + dev_dbg(ec_dev->dev, "Error %d sending resume event to ec\n", ret); if (ec_dev->wake_enabled) -- 2.35.1.265.g69c8d7142f-goog