Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1327225ybh; Sun, 19 Jul 2020 16:15:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+FuhT6DD0stmDovEQBqeRr0wbR4nvAEMfhMLdOnKhhx/cR1w2C7HOcwDDMrrH2Ehet6y0 X-Received: by 2002:a50:cbcd:: with SMTP id l13mr18527347edi.384.1595200540967; Sun, 19 Jul 2020 16:15:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595200540; cv=none; d=google.com; s=arc-20160816; b=KmffyQH1geUtbIFz58lT872k25gfzj4ukOvaDwPMzCjhyhherlCEX/tyqPRZGbKeSO 9DHt720GNfHvF2JW0ViHuUEugLfuYQNcmGbEzRANQ0kKYOqU+1l+JSoYYnYnYdWTqaxh wTX6lYckXEfFdfmTUk+ACeeBoAfKCbLkC1JfzsaIZ+IpX/hIceHdH8B5OrRQaSNjlgLj 9jnVlNtj+IfwgUr61cHVy3Y3MLia94hnWARfvsnKDJs0t6oyKXTJwnBxGA93a0/gdVlH M6oDZsXosea4xKbiT8pn6ZvvTw887OQVMdUxOW5Br6f30JZ0S1Nn+kmXoazb2mhfc9Xs k+AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tJ9r7Kj2JZ78SZKbu2ksaAjGKTUOUIiaxChKdLFlRa4=; b=SnOt5c14+o9HiPqBkOdppuTc12AXKLD9iySta9U4mECSSpiTiMbk5YMFskmgHljHr8 L2/2HFeTJnfN/BLWEIEosSMcvJT48+yHgCiwBE4iqNEPrdztNwqigPdPvRKlyKPQjKfZ lWZh7abn/mJZSeg/NHO6M3CooZm+b4bCtGqL5JuufsbQK1sdpl1eK2yrPvxGLLV1hEQW DacrW9BaAHBg4E/NfK/5VuZ/R4rafkchQNoJBzgg1TgY3fY9aruA8JkHlaY3t24OgDNK 9DiwXhn3ffN7NSqD6EO3vnuT+XgH0fDRgpe1FbKxYXLmkhATAx/hnLAqoeAG31R+e5Vz I51Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Upq5jsJb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e13si9782327ejc.215.2020.07.19.16.15.18; Sun, 19 Jul 2020 16:15:40 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Upq5jsJb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727837AbgGSXMK (ORCPT + 99 others); Sun, 19 Jul 2020 19:12:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727036AbgGSXLk (ORCPT ); Sun, 19 Jul 2020 19:11:40 -0400 Received: from mail-oi1-x242.google.com (mail-oi1-x242.google.com [IPv6:2607:f8b0:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D0ACC0619D2 for ; Sun, 19 Jul 2020 16:11:40 -0700 (PDT) Received: by mail-oi1-x242.google.com with SMTP id k22so13028191oib.0 for ; Sun, 19 Jul 2020 16:11:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tJ9r7Kj2JZ78SZKbu2ksaAjGKTUOUIiaxChKdLFlRa4=; b=Upq5jsJbyhEgpKW7Pkr+aqO/nuzSbbqBjvUFRLBNio6eEOnfcteoqYD99EDrYTX9I1 g9LUwxDqpUWkSbPx6RlkcBceJLCnGYsTYXbKaOY8ygqy7Vqm9TrSeyPHg5gUs24KZN19 tsfYUYxLJPyxpZSN5kqM4jvyWGNjkJPgp04kbT+bNqG+8Ec7SIFDHd/BgJRA5ZcvbMg3 uj/NKSJ152rOGx61eLMDBWVqfMWbzuYt4DTbVy2DVOOi1IaR88xv0+iPsVKuKHqbNz9g 97NINoDb99Yn+n2CZdrn9szoQ+e9UwPqeTeoixFjXNiE21r1xNllS+DhMqaCCQo51pjd iVOw== 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:mime-version:content-transfer-encoding; bh=tJ9r7Kj2JZ78SZKbu2ksaAjGKTUOUIiaxChKdLFlRa4=; b=oRx2KIvd+V8YLRAQljM01oUIcA5vxJA93YdQ2NvMsgwloEErMEX0W61T1Xguh74TiP ModF0BLFWfL7OaUeMU6I4qF+dSuen92IsnphC66ezDj5lBXc7dpNVKExY0o2jLqKiXR1 1yTK/mB4T0suyMWtDYO6G8wGwzKHQ5Qn824zW4sPcepQyVNAqB+mv19tAg3v8UkghrsW ciEBDU2D07l45KZsKCX/o4aLecOmNEbexgppCo8+8Sf/aqkvPjaXqsz6Pjkzhf881TpV vejB0JanmKXT/mbIVUBnzWFVwhO3d82iK8l4FpKdmHQ/63Z+xYmRcnbO2JDh4mz8g8zz JuBg== X-Gm-Message-State: AOAM531C4VVkw2/9NiJuKuh/eQWWEoKEhpI1oyEoA4fyrVkNGsa+IFWg VaqnrDDNAhoXmy5Mktq9K7c= X-Received: by 2002:aca:bd8a:: with SMTP id n132mr16186298oif.121.1595200299046; Sun, 19 Jul 2020 16:11:39 -0700 (PDT) Received: from frodo.hsd1.co.comcast.net ([2601:284:8204:6ba0::5e16]) by smtp.googlemail.com with ESMTPSA id q19sm2394680ooi.14.2020.07.19.16.11.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jul 2020 16:11:38 -0700 (PDT) From: Jim Cromie To: jbaron@akamai.com, linux-kernel@vger.kernel.org, akpm@linuxfoundation.org, gregkh@linuxfoundation.org Cc: linux@rasmusvillemoes.dk, Jim Cromie Subject: [PATCH v5 11/18] dyndbg: use gcc ?: to reduce word count Date: Sun, 19 Jul 2020 17:10:51 -0600 Message-Id: <20200719231058.1586423-12-jim.cromie@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200719231058.1586423-1-jim.cromie@gmail.com> References: <20200719231058.1586423-1-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org reduce word count via gcc ?: extension, no actual code change. Signed-off-by: Jim Cromie --- lib/dynamic_debug.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index e879af4e66e0..6d0159075308 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -127,10 +127,10 @@ static void vpr_info_dq(const struct ddebug_query *query, const char *msg) vpr_info("%s: func=\"%s\" file=\"%s\" module=\"%s\" format=\"%.*s\" lineno=%u-%u\n", msg, - query->function ? query->function : "", - query->filename ? query->filename : "", - query->module ? query->module : "", - fmtlen, query->format ? query->format : "", + query->function ?: "", + query->filename ?: "", + query->module ?: "", + fmtlen, query->format ?: "", query->first_lineno, query->last_lineno); } -- 2.26.2