kthread_create - fix varargs bug
authorAlex Hornung <ahornung@gmail.com>
Fri, 24 Feb 2012 21:13:19 +0000 (21:13 +0000)
committerAlex Hornung <ahornung@gmail.com>
Fri, 24 Feb 2012 21:13:19 +0000 (21:13 +0000)
commit70c5c55f6221272a55367e02c3ec30913ae8393a
tree88a5a26e8214289134b3ecbf2cd802c94887c369
parentb41a18bab256e13662151752967ce21112349ca9
kthread_create - fix varargs bug

 * varargs in _kthread_create were handed the formatter but not the
   va_list, leading to all sorts of unexpected behaviour.

 * Set up the va_list in the callers of _kthread_create and pass it in
   when calling.

Points-finger-at: tuxillo
Reported-by: Markus Pfeiffer, Sascha Wildner, Myself
sys/kern/kern_kthread.c