Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp617329ybt; Wed, 17 Jun 2020 09:29:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu5OCl1tYpvNq48qZz4FzcZNJ0feySZhdk0fgG2HxJ1THqFZm63cQDHejsuTaPq4dewyKa X-Received: by 2002:a17:906:2a4d:: with SMTP id k13mr8658891eje.253.1592411344617; Wed, 17 Jun 2020 09:29:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592411344; cv=none; d=google.com; s=arc-20160816; b=pw1KvPdSiRXMjQhtpmoY/D1wKwzVmc7o+JVB077nu//M9PmGUgnAyK1jVIas7oXAt7 UbR2xeSAW0/qE6sQBmNWeHgi1fcrG/JMO7hLWsCJtmF1m9EvZcbF1ZmuGOfMNmMmByFw scNddvv+7Vq5YjecOR9k/YNSET+wir1DCTvxlwOQoTfLf06W0EYYyGie/YiQI5WQEjlV PAeBm8pT6oWcfxEIRVHYLWgJouGp+J0UbaRuHLC0h0cKTreVLsqGCmbvBSSsvftxEglj eNKZlxgZ5Shv7rmAmcnNloDX2dcQb5b94w+A9gnGEK6s86b0AN2P5sC9yf3YQGH/yd8d dmwA== 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=R5J+qqIPunkHoU/7w2a3VlYM1evS6iVM0KpT2pgGtfy8q+9DdmDYALtmQlnvlJ2xF8 VSZ1tgALIjppsvMj6N/3bdfrazzyr/vbwzrmmYGvNklxQ+/dUScPtSN4m+8WjIQQWAjK KX8VACdr+BcuYsRq74Td9loBUCfHb1UptbQY5LmtWnMf9pWOlcdP7b/jNSwrWJR1xNt0 GTIk0fEiRav0FeghrrBD/26fYRAA4H7itwQF6uMZ2HJaWseVHIQRe1m5nvpddgaLqgKr bhT0e9dAlG0C9EfxTGX54dbC3akTz3QWhXKOXsda+mhrlmF39XLs5t7uEwqFXIztVMse RK8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aIqNiy5M; 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 y1si281916edi.491.2020.06.17.09.28.41; Wed, 17 Jun 2020 09:29:04 -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=aIqNiy5M; 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 S1727071AbgFQQ0b (ORCPT + 99 others); Wed, 17 Jun 2020 12:26:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727004AbgFQQ0Q (ORCPT ); Wed, 17 Jun 2020 12:26:16 -0400 Received: from mail-oo1-xc42.google.com (mail-oo1-xc42.google.com [IPv6:2607:f8b0:4864:20::c42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AD8EC06174E for ; Wed, 17 Jun 2020 09:26:14 -0700 (PDT) Received: by mail-oo1-xc42.google.com with SMTP id e8so518923ooi.11 for ; Wed, 17 Jun 2020 09:26:14 -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=aIqNiy5Mvn9/rd7bP4fh90AZFFHugzC1CLHYBNPgKtBEr3gvCCLc18lO5g7o/gJCUa 1kZ5TW7O1cp8MaMbp7QVvmOMSk38NaiIfllExM6LnPoOR5kluzRRecSH54Z5oMrNharH 7r+1fkOaM0KnXcnk89uGqy8uBob/Q+/plAat1PhX1FAH06s2RcuRHCLLaj/0X016WOUm nnnOKIii4xb1eoUfJzb53eMwOTecAP9GEp1/Z1+l69Q484JPFdua/no1adE+xlG3TMcp VAxmGqqFMqb4+xp3PP2qbTOtWcW0Ao301Pl/GaSDsxe1ybAI2bk/+RI49+u21PgzpJDZ yUDg== 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=KOhIPO36uZ7ICJ/I1PTD4MZgvJHOshId46DgyWMeQAZdpeQrBsSM8pqAhFZYB7gr3H p+lLueP+liacDtLD3OMb7AToCcOPrFa7PhNRiAJbuj1RZtg+fEoie6fwapSVSfmQe7Wa 8/k6ZXJDJLAMBS6YTYfOx1L7HiU+WEfUQjLggpDyjms0vSk92CctO1eWdLypG8W2vdI3 3i9odanxem9eF+rVu18PWV8hVFAUQpJcBZ5Bpyk1oneRads9cKdp0kGyKWLK9kKL0TYj d5ULeunItXszdxZqx0AfWERt9SxUUTwSuRcJz6SwyC7Ybw7bBHCAbi0bZDPCbAbB914r Wyug== X-Gm-Message-State: AOAM531wcM59c3LVKza5WiWMajOOkQezIcmuMISWzidfRem8YCmdynw2 WICnLZZSlG/lLVSjZBFWEoaI0l3Ho0U= X-Received: by 2002:a4a:e6d2:: with SMTP id v18mr195801oot.34.1592411174350; Wed, 17 Jun 2020 09:26:14 -0700 (PDT) Received: from frodo.hsd1.co.comcast.net ([2601:284:8204:6ba0::ae4b]) by smtp.googlemail.com with ESMTPSA id h7sm95877otk.48.2020.06.17.09.26.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jun 2020 09:26:13 -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 v3 11/21] dyndbg: use gcc ?: to reduce word count Date: Wed, 17 Jun 2020 10:25:24 -0600 Message-Id: <20200617162536.611386-12-jim.cromie@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200617162536.611386-1-jim.cromie@gmail.com> References: <20200617162536.611386-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