Revision: 70969 http://sourceforge.net/p/brlcad/code/70969 Author: brlcad Date: 2018-05-17 03:48:52 +0000 (Thu, 17 May 2018) Log Message: ----------- won't work unless we call a va_list function, so call bu_vls_vprintf to pass the argument list. then we can just call bu_log per usual.
Modified Paths: -------------- brlcad/trunk/src/libbu/heap.c Modified: brlcad/trunk/src/libbu/heap.c =================================================================== --- brlcad/trunk/src/libbu/heap.c 2018-05-17 01:56:51 UTC (rev 70968) +++ brlcad/trunk/src/libbu/heap.c 2018-05-17 03:48:52 UTC (rev 70969) @@ -95,12 +95,17 @@ /* Need a function signature that matches bu_heap_func_t, so wrap bu_log in * order to allow it to act as the default bu_heap_log function. */ HIDDEN int -_log_heap_wrapper(const char *s, ...) +_log_heap_wrapper(const char *fmt, ...) { + struct bu_vls output = BU_VLS_INIT_ZERO; va_list ap; - va_start(ap, s); - bu_log(s, ap); + + va_start(ap, fmt); + bu_vls_vprintf(&output, fmt, ap); + bu_log("%s", bu_vls_addr(&output)); + bu_vls_free(&output); va_end(ap); + return 0; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits