From 50dd50cbb479aaef62cf359a1e4aeb0efc5ca2f2 Mon Sep 17 00:00:00 2001 From: Tushar Janefalkar Date: Thu, 7 Mar 2013 12:34:57 -0800 Subject: [PATCH] Read debug level from gps.conf In order to control the logging levels of location Hal irrespective of the process calling it, a call to read debug level from gps.conf is added CRs-fixed: 461436 Change-Id: Id54083df36e3ee266c79c7b5178993dd5f3bdb78 --- loc_api/loc_api_v02/loc_api_sync_req.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/loc_api/loc_api_v02/loc_api_sync_req.c b/loc_api/loc_api_v02/loc_api_sync_req.c index fafdbe9a..6a086667 100644 --- a/loc_api/loc_api_v02/loc_api_sync_req.c +++ b/loc_api/loc_api_v02/loc_api_sync_req.c @@ -33,7 +33,7 @@ #include #include #include - +#include #include "loc_api_v02_client.h" #include "loc_api_sync_req.h" @@ -47,7 +47,7 @@ #include "loc_util_log.h" #define LOC_SYNC_REQ_BUFFER_SIZE 8 - +#define GPS_CONF_FILE "/etc/gps.conf" pthread_mutex_t loc_sync_call_mutex = PTHREAD_MUTEX_INITIALIZER; static bool loc_sync_call_initialized = false; @@ -102,6 +102,7 @@ SIDE EFFECTS void loc_sync_req_init() { LOC_LOGV(" %s:%d]:\n", __func__, __LINE__); + UTIL_READ_CONF_DEFAULT(GPS_CONF_FILE); pthread_mutex_lock(&loc_sync_call_mutex); if(true == loc_sync_call_initialized) {