From 7b30c426552e9baf9998df61447adec91a17cb9d Mon Sep 17 00:00:00 2001 From: Daniel Elstner Date: Fri, 21 Feb 2014 01:12:26 +0100 Subject: [PATCH] parse_probestring: Return list of all probes by default. --- input.c | 2 +- parsers.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/input.c b/input.c index b293ddd..c483546 100644 --- a/input.c +++ b/input.c @@ -131,7 +131,7 @@ static void load_input_file_format(void) } } - if (select_probes(in->sdi) > 0) + if (select_probes(in->sdi) != SR_OK) return; sr_session_new(); diff --git a/parsers.c b/parsers.c index 12b3766..43b61b6 100644 --- a/parsers.c +++ b/parsers.c @@ -48,8 +48,8 @@ GSList *parse_probestring(struct sr_dev_inst *sdi, const char *probestring) char **tokens, **range, **names, *eptr, str[8]; if (!probestring || !probestring[0]) - /* All probes are enabled by default by the driver. */ - return NULL; + /* Use all probes by default. */ + return g_slist_copy(sdi->probes); ret = SR_OK; range = NULL; -- 2.30.2