From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760693AbcIZJh3 convert rfc822-to-8bit (ORCPT ); Mon, 26 Sep 2016 05:37:29 -0400 Received: from smtp-out4.electric.net ([192.162.216.191]:61974 "EHLO smtp-out4.electric.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755905AbcIZJgs (ORCPT ); Mon, 26 Sep 2016 05:36:48 -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 Thread-Topic: [PATCH] realtek: Add switch variable to 'switch case not processed' messages Thread-Index: AQHSFcf58g/kmSbDnUiyD2DgvbTfG6CHXPQAgAAA2ICAAV4kgIAABZUAgALEGmA= Date: Mon, 26 Sep 2016 09:33:36 +0000 Message-ID: <063D6719AE5E284EB5DD2968C1650D6DB010988D@AcuExch.aculab.com> 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> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.202.99.200] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Outbound-IP: 213.249.233.130 X-Env-From: David.Laight@ACULAB.COM X-Proto: esmtps X-Revdns: X-HELO: AcuExch.aculab.com X-TLS: TLSv1:AES128-SHA:128 X-Authenticated_ID: X-PolicySMART: 3396946, 3397078 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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