Fix gnss arg check.
Change-Id: I86d8eb34a192a25789587a96675a60132d3b67c9
diff --git a/mbtk/mbtk_gnssd/gnss_main.c b/mbtk/mbtk_gnssd/gnss_main.c
index 1966855..cfceb1a 100755
--- a/mbtk/mbtk_gnssd/gnss_main.c
+++ b/mbtk/mbtk_gnssd/gnss_main.c
@@ -73,15 +73,18 @@
static int arg_check(int argc, char *argv[])
{
if(argc != 4) {
+ LOGE("argc = %d", argc);
goto check_fail;
}
// Only support 6228/8122/5311.
if(strcmp(argv[1], GNSS_ID_6228) && strcmp(argv[1], GNSS_ID_8122) && strcmp(argv[1], GNSS_ID_5311)) {
+ LOGE("argv[1] = %s", argv[1]);
goto check_fail;
}
if(access(argv[2], R_OK | W_OK)) {
+ LOGE("access(%s) rw fail. ", argv[2]);
goto check_fail;
}