On Oct 30, 6:24pm, p...@whooppee.com (Paul Goyette) wrote: -- Subject: Re: CVS commit: src/sys/dev/pci
| One more revision. This one updates the length parameter as well as the | dest pointer, so the caller doesn't need to recalculate on each call. | | I've also changed it to return an int value rather than void: | | x = 0 success | x < 0 vsnprintf() failed (for userland code, errno will | contain details) | x > 0 success, however the output was truncated to avoid | overflowing the output buffer. | | This variant seems to work just fine, both in-kernel and userland. You don't need 2 static decls, you can put all the info in one. christos