Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1387197ybt; Thu, 9 Jul 2020 05:59:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxleXO67SSe0A9VeX7pjLHJBJHoj4Da/Mknw1F+gFDjS227NrLjiL4bZik5bMgrbE3P8h1E X-Received: by 2002:a17:906:2287:: with SMTP id p7mr57560396eja.537.1594299568781; Thu, 09 Jul 2020 05:59:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594299568; cv=none; d=google.com; s=arc-20160816; b=bVRuYo2m6SgwDNAEH4yVwbYDt3f0vyLQftr9oq+Llyd+sv5/RycE8kI9P2zZPksA10 mALWvLXn1QVL2azacfIOZqL+susWijpwjeFkhJyOxGURCDa31XNU4H7i8/6XT98u8t6E Ykb5kUyJzrEIVDvgTU5ojb3trtFvuOqTLz0A0QrcyqlicUhQ1oy1E45sn8JWiRlY8pfj Q+8PItEGVr0LMgRIgNilmiCl4/bbUdhsbfnncU77EIMUC75040Pji160sW+0wrlHhl3B IUo24wOyDlazdyNwQ3OlJq81znP5Knd3eodifzLm0DqtrM9dZUW/Pvir9+WNf6N6WwGq xoSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=h+ArZ3ENeEPmWnYADxaybch5oMhN0+oXCCTJwkKrIwg=; b=wIs6abe06azU7Jgkbw09IXaaFOnpxPIcgmVZD84QM7BYkLgCIbFk7/FgH+LOcaXmbv TNQJQBn9gxE+eN5g34IDcNtpKCUjzYoXsoiBzwSaII1+ZQl2bTxSO8llVHv/v5AOjXsX 2E6TLZGsgpUB+pOFwJTnAl2maeURfODuANNoO5YS3l3mmmQ7I8q72JMk49mTEUK4Qnd3 KWANF0A0fXsNNbbgCkwNOqmzvRRG/tTgF2tqS/nhpoIBODaoG/uWDPUlzLcT5yEgMC7b o47BRWT27BK7msjYjzxgTq7bYnzovFbfs3LqYR2JjQrBiaSdEbzdOy7cck8IkR1RnLM9 +PEA== 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 i16si1836573ejk.407.2020.07.09.05.59.05; Thu, 09 Jul 2020 05:59:28 -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 S1726710AbgGIM4v (ORCPT + 99 others); Thu, 9 Jul 2020 08:56:51 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:34470 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726347AbgGIM4v (ORCPT ); Thu, 9 Jul 2020 08:56:51 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4B2bm12FFjz1qs0p; Thu, 9 Jul 2020 14:56:49 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4B2bm11cqDz1qr5G; Thu, 9 Jul 2020 14:56:49 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id WbtLDCXXAu1f; Thu, 9 Jul 2020 14:56:48 +0200 (CEST) X-Auth-Info: cotWZ0zpxsn8DUJfFI53qGsRrQ2NdPQ5BXZYO0cnJnQ1Lm0koGAWi3Bhr/VBwbkG Received: from igel.home (ppp-46-244-184-194.dynamic.mnet-online.de [46.244.184.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 9 Jul 2020 14:56:48 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id EE4F82C0B9F; Thu, 9 Jul 2020 14:56:47 +0200 (CEST) From: Andreas Schwab To: Joakim Tjernlund Cc: "linux-kernel@vger.kernel.org" Subject: Re: printk of non NULL terminated strings ? References: <4436dd281299b46f431ad1707c5de42af45ea4f7.camel@infinera.com> X-Yow: I want a VEGETARIAN BURRITO to go.. with EXTRA MSG!! Date: Thu, 09 Jul 2020 14:56:47 +0200 In-Reply-To: <4436dd281299b46f431ad1707c5de42af45ea4f7.camel@infinera.com> (Joakim Tjernlund's message of "Thu, 9 Jul 2020 12:31:14 +0000") Message-ID: <87h7ugu9rk.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Jul 09 2020, Joakim Tjernlund wrote: > Is there a format (or other function) that lets me > print strings without an \0 terminator using an explicit length arg instead? Use the precision. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."