log: common logging method definition for all testers and helpers
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
#define _LIBMM_INSIDE_MM
|
||||
#include <libmm-glib.h>
|
||||
|
||||
#include "mm-log.h"
|
||||
#include "mm-log-test.h"
|
||||
#include "mm-modem-helpers.h"
|
||||
#include "mm-modem-helpers-sierra.h"
|
||||
|
||||
@@ -115,27 +115,6 @@ test_scact_read_response_multiple (void)
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
void
|
||||
_mm_log (gpointer obj,
|
||||
const char *loc,
|
||||
const char *func,
|
||||
guint32 level,
|
||||
const char *fmt,
|
||||
...)
|
||||
{
|
||||
va_list args;
|
||||
gchar *msg;
|
||||
|
||||
if (!g_test_verbose ())
|
||||
return;
|
||||
|
||||
va_start (args, fmt);
|
||||
msg = g_strdup_vprintf (fmt, args);
|
||||
va_end (args);
|
||||
g_print ("%s\n", msg);
|
||||
g_free (msg);
|
||||
}
|
||||
|
||||
int main (int argc, char **argv)
|
||||
{
|
||||
setlocale (LC_ALL, "");
|
||||
|
Reference in New Issue
Block a user