Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1491183
| From | David Laight <David.Laight@ACULAB.COM> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH] realtek: Add switch variable to 'switch case not processed' messages |
| Date | 2016-09-26 11:40 +0200 |
| Message-ID | <slAyd-26E-5@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <skDot-7lF-7@gated-at.bofh.it> <skDRv-7vd-9@gated-at.bofh.it> <skE1c-7NG-7@gated-at.bofh.it> <skXwR-2P2-13@gated-at.bofh.it> <skXQd-3em-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> 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
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages Joe Perches <joe@perches.com> - 2016-09-23 21:10 +0200
Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages Jean Delvare <jdelvare@suse.de> - 2016-09-24 18:00 +0200
Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages Joe Perches <joe@perches.com> - 2016-09-24 18:20 +0200
Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages Larry Finger <Larry.Finger@lwfinger.net> - 2016-09-24 18:40 +0200
Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages Joe Perches <joe@perches.com> - 2016-09-24 19:40 +0200
Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages Larry Finger <Larry.Finger@lwfinger.net> - 2016-09-24 21:10 +0200
Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages Jes Sorensen <Jes.Sorensen@redhat.com> - 2016-09-24 22:10 +0200
Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages Joe Perches <joe@perches.com> - 2016-09-24 22:30 +0200
Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages Jes Sorensen <Jes.Sorensen@redhat.com> - 2016-09-24 22:40 +0200
RE: [PATCH] realtek: Add switch variable to 'switch case not processed' messages David Laight <David.Laight@ACULAB.COM> - 2016-09-26 11:40 +0200
csiph-web