Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys



    Date:        Mon, 20 May 2019 16:35:45 -0400
    From:        "Christos Zoulas" <christos%netbsd.org@localhost>
    Message-ID:  <20190520203545.B41F6FBF5%cvs.NetBSD.org@localhost>

  | Add a simple vasprintf() implementation that uses 2 passes, one to compute
  | the length and a second to place the data. Requested by rmind@

Shouldn't there be a va_end(cap) in there?

For that the easy way would be to use cap for the kprintf() that
calculates the length, and then use ap for the one that fills in
the data, so that one can remain as "return kprintf();" and get
the func call optimised into a jump).

kre



Home | Main Index | Thread Index | Old Index