     message.utf8CString.withUnsafeBufferPointer {
         guard let base = $0.baseAddress else { return }
         let varargs = [OpaquePointer(base)]
-        let va_list = getVaList(varargs)
-        g_logv(domain, level, "%s", va_list)
+        withVaList(varargs) {
+            g_logv(domain, level, "%s", $0)
+        }
     }
 }
 #else

//  GLib
//
//  Created by Rene Hexel on 27/04/2017.
//  Copyright © 2016, 2017, 2018, 2019 Rene Hexel.  All rights reserved.
//
import CGLib


    message.utf8CString.withUnsafeBufferPointer {
        guard let base = $0.baseAddress else { return }
        let varargs = [OpaquePointer(base)]
        withVaList(varargs) {
            g_logv(nil, level, "%s", $0)
        }
    }
}

