Re: Linux Kernel Markers format string idea
"Frank Ch. Eigler" <[email protected]>
| Newsgroups | gmane.linux.systemtap,gmane.linux.kernel.tracing,gmane.comp.parsers.sparse |
|---|---|
| Message-ID | <[email protected]> |
Hi - On Thu, Dec 21, 2006 at 11:20:35AM -0500, Mathieu Desnoyers wrote: > [...] I just had an idea about a format string extension that would > help fix the missing type checking with format strings for Linux > Kernel Markers. [...] The idea is to add the type between brackets > after the conversion specifier. For a pointer to a structure : > "%p[struct mystruct *]" [...] It's probably an improvement, though as it is still at the programmers' discretion, it is less useful for checking and more as documenting. I remain ambivalent about whether exposing this level of detail (complex typing) is a good idea, or whether imposing a small fixed set of types (string/number/blob) is better. - FChE