Date:        Mon, 20 May 2019 16:35:45 -0400
    From:        "Christos Zoulas" <chris...@netbsd.org>
    Message-ID:  <20190520203545.b41f6f...@cvs.netbsd.org>

  | 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

Reply via email to