On 08/15/2011 10:05 AM, Daniel Wagner wrote:
On 08/05/2011 09:33 AM, Marcel Holtmann wrote:
Hi Daniel,
connmand -n -d 2&> log.txt
connmand -n -d "*" 2&> log.txt
both -d and -d "*" are actually the same. We fixed that. So you can be
nice and short ;)
Are you sure? The first one gives me no DBG output. Only the second form
works for me. And yes, I'm using the HEAD :)
static gboolean parse_debug(const char *key, const char *value,
gpointer user_data, GError **error)
{
if (value)
option_debug = g_strdup(value);
else
option_debug = g_strdup("*");
return TRUE;
}
static GOptionEntry options[] = {
{ "debug", 'd', G_OPTION_FLAG_OPTIONAL_ARG,
G_OPTION_ARG_CALLBACK, parse_debug,
"Specify debug options to enable", "DEBUG" },
Yes, I am sure. At least that is how it suppose to be ;)
(gdb) p option_debug
$1 = (gchar *) 0x126c310 "2"
Hmm, is glib broken there?
/me feeling stupid: the command line should be "connmand -n -d &> log.txt"
so all works fine.
cheers,
daniel
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman