Return-path: Received: from smtp-out4.electric.net ([192.162.216.194]:50574 "EHLO smtp-out4.electric.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751399AbcIZJmy (ORCPT ); Mon, 26 Sep 2016 05:42:54 -0400 From: David Laight To: 'Joe Perches' , Jean Delvare CC: Larry Finger , Chaoming Li , Kalle Valo , "linux-wireless@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] realtek: Add switch variable to 'switch case not processed' messages Date: Mon, 26 Sep 2016 09:33:36 +0000 Message-ID: <063D6719AE5E284EB5DD2968C1650D6DB010988D@AcuExch.aculab.com> (sfid-20160926_114257_399108_CDB5D648) References: <1474654333.1849.5.camel@perches.com> <1474657363.1849.9.camel@perches.com> <20160924175555.01cae6dd@endymion> <1474733754.23838.3.camel@perches.com> In-Reply-To: <1474733754.23838.3.camel@perches.com> Content-Type: text/plain; charset="Windows-1252" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: > If you want to create enum->#ENUM structs and > "const char *" lookup functions, please be my guest. > > otherwise, hex is at least a consistent way to display > what should be infrequent output. If I've typed it right: #define tags(x) x(A) x(B) x(C) #define x(t) t, enum {tags(x) tag_count}; #undef x #define x(t) ##t, static const char names[] = { tags(x) }; #undef x David