Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1951271ybt; Mon, 15 Jun 2020 13:53:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMB+pI+rrhmS2IaojMFEIniZ/sCOaIPPAgOvjRWVMiNn+YFFszLGnXNW27Ejy7EYBNdvhw X-Received: by 2002:a05:6402:1c87:: with SMTP id cy7mr26214710edb.354.1592254391719; Mon, 15 Jun 2020 13:53:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592254391; cv=none; d=google.com; s=arc-20160816; b=h1oH+AVDqjh4k0k2SZGth5LMJQUr8Yv1S9DLL/S/gn3A/LtTXBYBLma+rPyGGjWvrC rNoBnUwLCWKzAbZIQGQbhqKDaTfo/OqO+WtdE4hWuQPPvol7RoWTimcP9KhIOXJMK6aR zQqKEpQg3OUVTsJ3KLuphSc9TxsNpwumW2NkV0zMUmxb+BCIcTs8dBRJE3483OS6Y02f d1vEaC68SJ8CUwo4kPPLMklOtld4v6AoTjfgnDte7T9YUU30FCPTLRQqvbtSYPe8CRA3 EHITpLf2R95DYq9w+L30orLnLITOuHXiZmyWTfLYGU2z694FWP2C1bCY8c4eNKO/y3dt K1ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=CRdCEDBFsemOGqYAvEiPbOTW3ZUWqB86Y8kM4dxKrgw=; b=aMQJLh/OKTdrmQisCeZSgEwnHZ4yAaK/e7TfemkXXMDB993RWTF6IwksRPfuaB+W3r RiUrD1mRgxumlVzh5aZoPR2+gFJmmFzQNnSuldmih6slL1H+7O/qQh2rF7NFsDlcVm5X jIBIi7sG8GW9VdPRGY8zjRSygvai1iVIj77uJKZqDfAHRxb+cpdTq49ists3k7E/5GAJ y0XDk3LvkhwuV6Wsd0/dF1mQuPIhDs3JSqDUve8kdX2Jy4NTByBEeagHXmwQKT+qEOuq BfMP3UWujMaInNkHVvTxvslzCKl3FeW9O8eZ77dyld5ts5+WbEnRkWmD72/wT7jNmjIj lEtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=alsetzwT; 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 f11si1934815edn.268.2020.06.15.13.52.49; Mon, 15 Jun 2020 13:53:11 -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=alsetzwT; 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 S1731476AbgFOUvE (ORCPT + 99 others); Mon, 15 Jun 2020 16:51:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730995AbgFOUvD (ORCPT ); Mon, 15 Jun 2020 16:51:03 -0400 Received: from mail-ua1-x944.google.com (mail-ua1-x944.google.com [IPv6:2607:f8b0:4864:20::944]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DED2C061A0E for ; Mon, 15 Jun 2020 13:51:03 -0700 (PDT) Received: by mail-ua1-x944.google.com with SMTP id w20so6172960uaa.2 for ; Mon, 15 Jun 2020 13:51:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CRdCEDBFsemOGqYAvEiPbOTW3ZUWqB86Y8kM4dxKrgw=; b=alsetzwTb0qaWQq7mITdJt96B9vvSKwUZ6Nb8rkNR8SlkcO1AdePBXaopcgvqmrtd6 2Dlw0kNOxor6Xr4csselybI4a2yznFbWxlZMeYN1GwVyUu3nGccsh0WOwvSYPNBEuJSq cc3QsME6XPiAp2N0PMA66AbxLUUX/1y4r+YSoHJIMaQsDHpw2IPAAMk4UAFScE+07/eI EAdNQl/fgNURZBUlzsp7IGcYzBQ+FU3fbOfoAPVSU84XGIUCKsTFvbtdirRnub/dmSez IEFvDQEU0jbjHzX5X2k59kJpNT6XCWHJl1nMRdW5oelba9tiaGkJOmxSEtFX/pmmI32K f3vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CRdCEDBFsemOGqYAvEiPbOTW3ZUWqB86Y8kM4dxKrgw=; b=SoytAV3wyG6TnORcQJ1E79CYtx/OnNnWYe4k8Ntp1c++QRM/a8F2CW6WlKno7SuzJq cFaDg5m48QRP6NdB2dWCGKCI8s1Q7W6SsAIm6BvYUwA37KIjfLJZAlHIUx/rPJZXmLI9 jfUNdixi+jLl2vcaQpUXD0cqOkSPX7Pf46J0SObyxeRvRubGJ4dpPbcZbOwgEXIuE8+u y7GdwdhZwqaMyclOgZ9s+mD5mjTRj8wNpvKgIV9zsayqop9Puc0QINJeoON2VDHqG93E V273/uIztjOL+rXItVyViIZBQCyGIPEdO/aoYzS1fF6rboPvyMqJAyuxfnIcwoqNc6aX qBwA== X-Gm-Message-State: AOAM533ZWMThkAb3LVwesRvSnEfj5+5+i4N/n4NIT2otbax4vmcpQlwp UFVuG8oqIZ7fKeZg5isZqF1cRU1vhy65CzkLE4Y= X-Received: by 2002:ab0:30d1:: with SMTP id c17mr16028511uam.142.1592254262514; Mon, 15 Jun 2020 13:51:02 -0700 (PDT) MIME-Version: 1.0 References: <20200613155738.2249399-1-jim.cromie@gmail.com> <20200613155738.2249399-10-jim.cromie@gmail.com> <030bb11d193d13a2d1c161a133bb7b88093a1fe9.camel@perches.com> In-Reply-To: <030bb11d193d13a2d1c161a133bb7b88093a1fe9.camel@perches.com> From: jim.cromie@gmail.com Date: Mon, 15 Jun 2020 14:50:36 -0600 Message-ID: Subject: Re: [PATCH v2 09/24] dyndbg: add maybe(str,"") macro to reduce code To: Joe Perches Cc: Jason Baron , LKML , akpm@linuxfoundation.org, Greg KH , Rasmus Villemoes Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 13, 2020 at 10:14 AM Joe Perches wrote: > > On Sat, 2020-06-13 at 09:57 -0600, Jim Cromie wrote: > > +#define maybe(str, empty) ( str ? str : empty ) > > This macro is unnecessary. > > An even shorter very commonly used gcc extension would be > > str ?: empty > ooh yes. I'll do this