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
This commit is contained in:
parent
cb30de1efc
commit
50dd50cbb4
1 changed files with 3 additions and 2 deletions
|
@ -33,7 +33,7 @@
|
|||
#include <pthread.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <loc_cfg.h>
|
||||
#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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue