From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6443338DDB; Thu, 12 Dec 2024 03:41:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733974884; cv=none; b=BQZlJutOdbxtdxMtD/Yej2K8S4scP216OIYFTqhQ54UEjb1eLgFnwNv7CDs+pdb2JciyizLA8AAGJnA54UStmJXs2soR8AZF5vzrPOP71OynTn7UuXLQlc8dbwej0eZEuqKkdkiWHYDG9Nv/vtruRcyp2g5HL9orAbE7fDYQ+MU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733974884; c=relaxed/simple; bh=7Vi1Sc9kCGtKQksRtAfKyk/bPxwvFdGJDdkUvncYg8I=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WZ8esqsbFRjU+oxsp2loedvBmZoz5VEa1gFtMQAlW2iaUbr4Cs8WnCNpv6XLPW0B33GPP6/0y0CIL8imDhsQhct9rb7edTbW7Yr6VGYFfZHxN9O6WkRaMnwaN+DWdiXLnxBGdUopxXduSH9GWczFg/LLAY1mF1+6IZeY2nRYKQk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=G2zLSggm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="G2zLSggm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 317F8C4CED1; Thu, 12 Dec 2024 03:41:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733974884; bh=7Vi1Sc9kCGtKQksRtAfKyk/bPxwvFdGJDdkUvncYg8I=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=G2zLSggmzEFyOKFADq5n4DbpgYATKEExUnAmufeBGTR+tzG4vbtSeyFnCJspU0Jpj K800gGsDkIIPxuIplISk0VilwFQ/0arl4iMo2pwv1umZrOkG7W2wsBlVtVf/UxVkIz 2fjXR+PgMSSLaCxFclTIELDLofVk1lF/TGsV71dmjxctSS80kKnWxKHSJQgPb1R/ac SZi7gAW1wKDMmgMEZBHUv0/fTavxxLJGGEAtv8wd7M+uFElqnuLRYefTVPXzZIFJRi aVRnP7hVH30jdNvH4p2HojZA20EQ89V60HTPyDdE74xeLbI4/XezD42bTrhKGS3DP/ V0nHNHoBqN7PA== Date: Wed, 11 Dec 2024 19:41:22 -0800 From: Jakub Kicinski To: Jijie Shao Cc: , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH V6 net-next 1/7] net: hibmcge: Add debugfs supported in this module Message-ID: <20241211194122.26d6b38b@kernel.org> In-Reply-To: <20241210134855.2864577-2-shaojijie@huawei.com> References: <20241210134855.2864577-1-shaojijie@huawei.com> <20241210134855.2864577-2-shaojijie@huawei.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 10 Dec 2024 21:48:49 +0800 Jijie Shao wrote: > +#define hbg_get_bool_str(state) ((state) ? "true" : "false") If you're defining a wrapper for this you're better off using str_true_false()