Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1707428ybk; Mon, 11 May 2020 02:15:34 -0700 (PDT) X-Google-Smtp-Source: APiQypJ8NrozQhSrpSUn3VHYhgTcacWi0DrfyRHfN0WVuSM2VPzJjEbqgIC/j/8axKhrnOATHamg X-Received: by 2002:a17:907:2129:: with SMTP id qo9mr13068011ejb.92.1589188533937; Mon, 11 May 2020 02:15:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589188533; cv=none; d=google.com; s=arc-20160816; b=vxX0BLXpjr95rAf9iv4XS2SjGT3Vy8RzYzlJ4BxondU2icp2hKrW/tsYR8nfZkRJQc mWxOdlbbi/LGvJa1bzxn4jGND1b8LVGWPWDl//25RoPlgYJzJKHm9Iz1oH4sP3fm1J86 YYwAG6R0Jou7VVx1lEUMT9jZ/TNE+/bWceQeMc9CYjStn1+fOwLqMEMCdnxxLgg/zO8x 22X3sciSBX6Uwt3eS4n58ixuk32RPoEMicUUtjw3Kvo9atK9vthxdDxKu+C7WX8ztCgE VMF1LlWORUHhC1uFnQKk1rtzq5RAvuNEqFNAHzHacV0e/zP97/F37LiHDDuG2kCXJO1w PwYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=8IG0MF2mHgArw14l58VeBuIwCNsMnDlDgDGr/YNDqlU=; b=xGxgavcR0rOJyq9wfwCWFSLWWt1UN014SmQmUb0TlNUtqMKw/A0URWbXqNl3MgoufB GVuEgIaKvi722n6kiGt0dnPe1jdV19vwBtDh2otF+xJXikmLvVsJ9CQWLWsown2FuGd7 6JOsyVdFW21b5HnctqEJfUEatdCVGOCSHaRPo7imUn5pphMioiIukGFCfO3pPZ5T5b4e 7hqiADuOx+dm4Kw0dzaArMbsSswxcG8bj0+oLL/B0S4X/h8LB3Js7Og6abw7ph+40bkx OjqF7v3HUG+EpB8UwDLQfbvlOZJoRClSEYUrNXT5fTSV1gTeEhv1HA0MGJ/VR880xpJ0 sM8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h15si5264979edj.37.2020.05.11.02.15.10; Mon, 11 May 2020 02:15:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729298AbgEKJMX (ORCPT + 99 others); Mon, 11 May 2020 05:12:23 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4388 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727873AbgEKJMW (ORCPT ); Mon, 11 May 2020 05:12:22 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 0D9E13C41AA2920C32B9; Mon, 11 May 2020 17:12:19 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Mon, 11 May 2020 17:12:11 +0800 From: Xiongfeng Wang To: , CC: , , Subject: [PATCH] media: uvcvideo: add a missing newline when printing parameter 'clock' Date: Mon, 11 May 2020 17:06:10 +0800 Message-ID: <1589187970-39851-1-git-send-email-wangxiongfeng2@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When I cat module parameter 'clock' by sysfs, it displays as follows. It is better to add a newline for easy reading. [root@hulk-202 ~]# cat /sys/module/uvcvideo/parameters/clock CLOCK_MONOTONIC[root@hulk-202 ~]# Signed-off-by: Xiongfeng Wang --- drivers/media/usb/uvc/uvc_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c index 431d86e..e4d2334 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -2356,9 +2356,9 @@ static int uvc_reset_resume(struct usb_interface *intf) static int uvc_clock_param_get(char *buffer, const struct kernel_param *kp) { if (uvc_clock_param == CLOCK_MONOTONIC) - return sprintf(buffer, "CLOCK_MONOTONIC"); + return sprintf(buffer, "CLOCK_MONOTONIC\n"); else - return sprintf(buffer, "CLOCK_REALTIME"); + return sprintf(buffer, "CLOCK_REALTIME\n"); } static int uvc_clock_param_set(const char *val, const struct kernel_param *kp) -- 1.7.12.4