From patchwork Tue Aug 28 15:52:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 145346 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1347665ljw; Tue, 28 Aug 2018 08:53:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYKSh803MfJzmc1gRqOpbmTJxOAMlZ43Rm9sL9wXx8sR53dAL/Lo9LhCJCfM7fLekqGuqHg X-Received: by 2002:a17:902:49:: with SMTP id 67-v6mr2187607pla.206.1535471580377; Tue, 28 Aug 2018 08:53:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535471580; cv=none; d=google.com; s=arc-20160816; b=taM3X6z2QZahjf8OIM8+dSFGZ+ruhSETenrAzhjRPP7G+FzvnYhaeUZ8fN/Bb2623Q pNYFbypRG07GmGrZx6cl0HsE1zef3RWTNy8vWiutCgTxWWe9sch0cpx9bXCCHZ1TPrOh aHCL4nRfneOBDst2YXxXVmBZPoXSSyXFqfuM5AmLuXoautAvITZouWYhyBVhR5EUdx9Y 8WEaO/Wyy8nYyM8sdB5tx47sQU1XDF72jgin1BQFqk3/H5JI6MJto1zvthkk3hrTTZGs U3OBg2hAchXD0FDtSStWjOJIEiHkNNIiC3v9CUP3FT+m9UMTuiOo2TVj1Uq5ky0+KiNw K1iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=Y1hlk2S9GwjBYVlyTE/lecEc+81ZS+U6GrCrISTwDb4=; b=yzicPdiXzWMK8BMhVlQC77XlvKEx5+i+z6cujXXr9UO6fVawnBoHSSL5wk+lnsyl8y 6DiLt0dfZf2D8xLuMq5h7aXczwKTpzZOhnKJ6yavQoLzX/R8o2RGGPxsjDmZInr4QQqi OT21xJc2u9TzCydbACTDojNJwpGbBDbnLaRQmkZR4PPNRDRrgA/8jM6SVm5hFMJ0ycWS LQF4wZWDydWYHVhmghkmFBejR7GqpFIgVdvUgsjlsbr0+fuVsCW2APimF8/U3RKU9SUP eBGTtHuRqAoUC/13IfpX0WKiwODvjtLB1K8sLYNo+5Py+J5czFDbJ/nn+65T6+seYdpA RIQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g15-v6si1298825plo.284.2018.08.28.08.53.00; Tue, 28 Aug 2018 08:53:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728048AbeH1TpP (ORCPT + 6 others); Tue, 28 Aug 2018 15:45:15 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:39649 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726383AbeH1TpO (ORCPT ); Tue, 28 Aug 2018 15:45:14 -0400 Received: by mail-oi0-f66.google.com with SMTP id c190-v6so3716122oig.6; Tue, 28 Aug 2018 08:52:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Y1hlk2S9GwjBYVlyTE/lecEc+81ZS+U6GrCrISTwDb4=; b=gxnXOyF5ONvQqSlq8i4k2URH4Ym598Q8v/P80y6EMWH8nl4Yi7RyCko65YOrKs73Qs Cdupydj9+6qfd8WRmmsKC01ZVvPZ3SeG/J2b8+zaGI/7dQm4B5zq6cL7BazXWJNYenw0 66hUM89PLq6SYzpBmXoPIyeIuV4fhi4oZUkyVo0zcmioiXpDUCfnhTg30+fXg/kurYsQ /aqSI0oMRm3bYFbzeDok2g+j94shfD2wiGPnRcnmNwE2TgUWhKuKSdGjhaGxKviiTEai jBZvPvBHRNPo3vEv6Xnpl6nzCpyrZZqZ8daoQexu6O5PqtbtJa8BmWjuceTd95TjeEBF 3TmQ== X-Gm-Message-State: APzg51Ce/A/7ZMgg+kliiLGzhKTHwcuj5JOpXB1wZSf2LVwUVkx2dgy4 rOcWy7n2ND+jS/YfsvgMnA== X-Received: by 2002:aca:fd4f:: with SMTP id b76-v6mr1810244oii.307.1535471577715; Tue, 28 Aug 2018 08:52:57 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id o68-v6sm2902294oik.56.2018.08.28.08.52.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Aug 2018 08:52:56 -0700 (PDT) From: Rob Herring To: Frank Rowand , devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 2/4] of/unittest: add printf tests for node name Date: Tue, 28 Aug 2018 10:52:52 -0500 Message-Id: <20180828155254.10709-3-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180828155254.10709-1-robh@kernel.org> References: <20180828155254.10709-1-robh@kernel.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add some printf test for printing the node name (without the unit-address). Cc: Frank Rowand Signed-off-by: Rob Herring --- drivers/of/unittest.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.1 diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index 69a522e48970..9def7be9c111 100644 --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c @@ -299,6 +299,10 @@ static void __init of_unittest_printf(void) of_unittest_printf_one(np, "%pOF", full_name); of_unittest_printf_one(np, "%pOFf", full_name); + of_unittest_printf_one(np, "%pOFn", "dev"); + of_unittest_printf_one(np, "%2pOFn", "dev"); + of_unittest_printf_one(np, "%5pOFn", " dev"); + of_unittest_printf_one(np, "%pOFnc", "dev:test-sub-device"); of_unittest_printf_one(np, "%pOFp", phandle_str); of_unittest_printf_one(np, "%pOFP", "dev@100"); of_unittest_printf_one(np, "ABC %pOFP ABC", "ABC dev@100 ABC");