Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1490669
| From | Jean Delvare <jdelvare@suse.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages |
| Date | 2016-09-24 18:00 +0200 |
| Message-ID | <skXwR-2P2-13@gated-at.bofh.it> (permalink) |
| References | <skDot-7lF-9@gated-at.bofh.it> <skDot-7lF-7@gated-at.bofh.it> <skDRv-7vd-9@gated-at.bofh.it> <skE1c-7NG-7@gated-at.bofh.it> |
| Organization | SUSE Linux |
Hi Joe, Larry, On Fri, 23 Sep 2016 12:02:43 -0700, Joe Perches wrote: > On Fri, 2016-09-23 at 13:59 -0500, Larry Finger wrote: > > I'm notĀ familiar with the %#x format. What does it do? > > Outputs SPECIAL prefix, it's the same as "0x%x" > > lib/vsprintf.c: > #define SPECIAL 64 /* prefix hex with "0x", octal with "0" */ Is hexadecimal actually the best way to display these values? I guess it depends how they are listed in the datasheets (if there's anything like that for these chips?) I found it a bit difficult to look up the meaning of the value. HAL_DEF_WOWLAN is an enum value, the number is not set and there's no comment. I had to count the line numbers, taking blank lines into account... I ended up pasting the whole enum to a random C file and printing the value of HAL_DEF_WOWLAN to make sure it was 92. Would it make sense to explicitly set the enum values, or add them as comments, to make such look-ups easier? -- Jean Delvare SUSE L3 Support
Back to linux.kernel | Previous | Next — Previous in thread | Next 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