Home
last modified time | relevance | path

Searched refs:g_outputPath (Results 1 - 1 of 1) sorted by relevance

/foundation/communication/bluetooth_service/services/bluetooth/stack/src/btm/
H A Dbtm_snoop.c82 static char *g_outputPath = NULL; variable
219 bool exists = BtmIsFileExists(g_outputPath); in BtmPrepareSnoopFile()
221 const int length = strlen(g_outputPath) + strlen(SNOOP_LAST_FILE_TAIL) + 1; in BtmPrepareSnoopFile()
226 if (strcpy_s(bakPath, length, g_outputPath) != EOK) { in BtmPrepareSnoopFile()
230 rename(g_outputPath, bakPath); in BtmPrepareSnoopFile()
235 g_outputFile = fopen(g_outputPath, "w"); in BtmPrepareSnoopFile()
261 g_outputPath = (char *)MEM_MALLOC.alloc(length + 1); in BTM_SetSnoopFilePath()
262 if (g_outputPath == NULL) { in BTM_SetSnoopFilePath()
266 (void)memcpy_s(g_outputPath, length + 1, path, length); in BTM_SetSnoopFilePath()
267 g_outputPath[lengt in BTM_SetSnoopFilePath()
[all...]

Completed in 1 milliseconds