From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 41571CCF9E3 for ; Mon, 10 Nov 2025 18:54:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 1A5F680C81; Mon, 10 Nov 2025 18:54:59 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id yJT15gRwFG13; Mon, 10 Nov 2025 18:54:57 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org DF1C080C6D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1762800896; bh=BmhmneHN1JPoXedmJW7NDfLTP9E1AX6jddhXfmE1LuI=; h=From:To:Cc:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=rDu6URYOaB1A7TIuowewMU91B6s1QKIV6qXwQlj5FGP7baKa4RseJ2yR3/W80aabA SgfglqMA5WcIi0kDmVGY1KMP3vjN/JGFPKQCVNdTG+QmLBsPJk+YxCiire2dBBvHry SlqqNxdwjT3whWRuri7CiWHYt1y5jJukRd5feAdrCsDNcmbnkCieIpDpEReeu4VqUw Y3Bf4918ACRsfP02y/ZEEePgij32xmr+YyOOAVKJ5KlbFfbKnuGuTerKOrHNcb7r63 K6JCbwT0Sbdu6PZpGZtgVzljaOHBfA3YeIybqDg+e3PSpxLnSM4kiDIdSBpRxesjaB nz3N2K0ypPnfw== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id DF1C080C6D; Mon, 10 Nov 2025 18:54:56 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists1.osuosl.org (Postfix) with ESMTP id CF55AFA for ; Mon, 10 Nov 2025 18:54:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id BE74C40680 for ; Mon, 10 Nov 2025 18:54:54 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id L13oPw8qkJiI for ; Mon, 10 Nov 2025 18:54:54 +0000 (UTC) X-Greylist: delayed 425 seconds by postgrey-1.37 at util1.osuosl.org; Mon, 10 Nov 2025 18:54:53 UTC DMARC-Filter: OpenDMARC Filter v1.4.2 smtp2.osuosl.org 077884067A DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 077884067A Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=198.175.65.21; helo=mgamail.intel.com; envelope-from=andriy.shevchenko@linux.intel.com; receiver= Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by smtp2.osuosl.org (Postfix) with ESMTPS id 077884067A for ; Mon, 10 Nov 2025 18:54:53 +0000 (UTC) X-CSE-ConnectionGUID: 6gaLNZfUTsS8mAWtxLHpng== X-CSE-MsgGUID: 4jYuWQ0XQYOdazDM6RemRA== X-IronPort-AV: E=McAfee;i="6800,10657,11531"; a="64769612" X-IronPort-AV: E=Sophos;i="6.17,312,1747724400"; d="scan'208";a="64769612" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2025 10:47:48 -0800 X-CSE-ConnectionGUID: vLwpzXxWTlqMkVe0jU7QSA== X-CSE-MsgGUID: vqdaBx3wRd2oCOgUpZsMtg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,294,1754982000"; d="scan'208";a="189190196" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa009.fm.intel.com with ESMTP; 10 Nov 2025 10:47:39 -0800 Received: by black.igk.intel.com (Postfix, from userid 1003) id 0116B97; Mon, 10 Nov 2025 19:47:28 +0100 (CET) From: Andy Shevchenko To: Corey Minyard , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Dr. David Alan Gilbert" , Alex Deucher , Thomas Zimmermann , Dmitry Baryshkov , Rob Clark , Matthew Brost , Hans Verkuil , Laurent Pinchart , Ulf Hansson , Andy Shevchenko , Vitaly Lifshits , Manivannan Sadhasivam , Niklas Cassel , Calvin Owens , Sagi Maimon , "Martin K. Petersen" , Karan Tilak Kumar , Casey Schaufler , Steven Rostedt , Petr Mladek , Max Kellermann , Takashi Iwai , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, openipmi-developer@lists.sourceforge.net, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, amd-gfx@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, intel-xe@lists.freedesktop.org, linux-mmc@vger.kernel.org, netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-pci@vger.kernel.org, linux-s390@vger.kernel.org, linux-scsi@vger.kernel.org, linux-staging@lists.linux.dev, ceph-devel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-sound@vger.kernel.org Cc: Rasmus Villemoes , Sergey Senozhatsky , Jonathan Corbet , Sumit Semwal , Gustavo Padovan , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Sean Paul , Marijn Suijten , Konrad Dybcio , Lucas De Marchi , =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= , Rodrigo Vivi , Mauro Carvalho Chehab , Vladimir Oltean , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Tony Nguyen , Przemek Kitszel , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Kishon Vijay Abraham I , Bjorn Helgaas , Rodolfo Giometti , Jonathan Lemon , Vadim Fedorenko , Richard Cochran , Stefan Haberland , Jan Hoeppner , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Satish Kharat , Sesidhar Baddela , "James E.J. Bottomley" , Greg Kroah-Hartman , Xiubo Li , Ilya Dryomov , Masami Hiramatsu , Mathieu Desnoyers , Andrew Morton , Jaroslav Kysela , Takashi Iwai Date: Mon, 10 Nov 2025 19:40:21 +0100 Message-ID: <20251110184727.666591-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20251110184727.666591-1-andriy.shevchenko@linux.intel.com> References: <20251110184727.666591-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1762800894; x=1794336894; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=fCt0uZJtXQzZViSDNcneyMtrnn/y5yDZ8tsLO9qgG3A=; b=i3xZASAMmkFNMbcirsxck1v9GAS0v+x2YFKZEq5XV3QYMg7cpD6JSJYd 9sqBJ/maP951rK/JxWlo+4XJt+5omJTtlRZjnNgG+x/C3Vncw+7HdeNz4 5CRU66wd7R2rwuXapZzAwKFv2atAnDxnn1vguB2GvHy1wQkp6oeBX525a iQFoQZeYu7KiFZ9hDyYIG6lubEdKi1kDvN79/YRVAUwmcJ65Uae41P5OF T/gTVO5z1NFrDBcqdzfwLP3ShyQsMtnYU7iXWOPuHks2OJw9xQwY6d9jA uw0kU9PrqgxArUTaHyooM24QP+GAV587z+yxFIIm3IFmlDIOx7wxPNYYZ g==; X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dmarc=none (p=none dis=none) header.from=linux.intel.com X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=i3xZASAM Subject: [Intel-wired-lan] [PATCH v1 02/23] ALSA: seq: Switch to use %ptSp X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" Use %ptSp instead of open coded variants to print content of struct timespec64 in human readable format. Signed-off-by: Andy Shevchenko --- sound/core/seq/seq_queue.c | 2 +- sound/core/seq/seq_timer.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/core/seq/seq_queue.c b/sound/core/seq/seq_queue.c index f5c0e401c8ae..f6e86cbf38bc 100644 --- a/sound/core/seq/seq_queue.c +++ b/sound/core/seq/seq_queue.c @@ -699,7 +699,7 @@ void snd_seq_info_queues_read(struct snd_info_entry *entry, snd_iprintf(buffer, "current tempo : %d\n", tmr->tempo); snd_iprintf(buffer, "tempo base : %d ns\n", tmr->tempo_base); snd_iprintf(buffer, "current BPM : %d\n", bpm); - snd_iprintf(buffer, "current time : %d.%09d s\n", tmr->cur_time.tv_sec, tmr->cur_time.tv_nsec); + snd_iprintf(buffer, "current time : %ptSp s\n", &tmr->cur_time); snd_iprintf(buffer, "current tick : %d\n", tmr->tick.cur_tick); snd_iprintf(buffer, "\n"); } diff --git a/sound/core/seq/seq_timer.c b/sound/core/seq/seq_timer.c index 29b018a212fc..06074d822bae 100644 --- a/sound/core/seq/seq_timer.c +++ b/sound/core/seq/seq_timer.c @@ -442,7 +442,7 @@ void snd_seq_info_timer_read(struct snd_info_entry *entry, int idx; struct snd_seq_timer *tmr; struct snd_timer_instance *ti; - unsigned long resolution; + struct timespec64 resolution; for (idx = 0; idx < SNDRV_SEQ_MAX_QUEUES; idx++) { struct snd_seq_queue *q __free(snd_seq_queue) = queueptr(idx); @@ -457,8 +457,8 @@ void snd_seq_info_timer_read(struct snd_info_entry *entry, if (!ti) break; snd_iprintf(buffer, "Timer for queue %i : %s\n", q->queue, ti->timer->name); - resolution = snd_timer_resolution(ti) * tmr->ticks; - snd_iprintf(buffer, " Period time : %lu.%09lu\n", resolution / 1000000000, resolution % 1000000000); + resolution = ns_to_timespec64(snd_timer_resolution(ti) * tmr->ticks); + snd_iprintf(buffer, " Period time : %ptSp\n", &resolution); snd_iprintf(buffer, " Skew : %u / %u\n", tmr->skew, tmr->skew_base); } } -- 2.50.1