Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/dev/pci
On Oct 30, 6:24pm, paul%whooppee.com@localhost (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
Home |
Main Index |
Thread Index |
Old Index