Dumpstate: use new history dir and inc more files
Modify the logging mask file path to instead point to the new history directory, as well as include more files (right now only logging mask history and logging enabled history). Bug: 259174982 Test: Manually build and inspect bugreport to make sure files are included Change-Id: Id87f381a4895399a035ea4fe55d132e31d5d796c
This commit is contained in:
parent
87c26c1cd5
commit
bffe8fccb9
1 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@
|
||||||
#include "DumpstateUtil.h"
|
#include "DumpstateUtil.h"
|
||||||
|
|
||||||
#define MODEM_LOG_DIRECTORY "/data/vendor/radio/logs/always-on"
|
#define MODEM_LOG_DIRECTORY "/data/vendor/radio/logs/always-on"
|
||||||
#define MODEM_LOG_MASK_HISTORY_DIRECTORY "/data/vendor/radio/logs/mask_history"
|
#define MODEM_LOG_HISTORY_DIRECTORY "data/vendor/radio/logs/history"
|
||||||
#define MODEM_EXTENDED_LOG_DIRECTORY "/data/vendor/radio/extended_logs"
|
#define MODEM_EXTENDED_LOG_DIRECTORY "/data/vendor/radio/extended_logs"
|
||||||
#define RIL_LOG_DIRECTORY "/data/vendor/radio"
|
#define RIL_LOG_DIRECTORY "/data/vendor/radio"
|
||||||
#define RIL_LOG_DIRECTORY_PROPERTY "persist.vendor.ril.log.base_dir"
|
#define RIL_LOG_DIRECTORY_PROPERTY "persist.vendor.ril.log.base_dir"
|
||||||
|
@ -622,10 +622,10 @@ void Dumpstate::dumpLEDSection(int fd) {
|
||||||
|
|
||||||
void Dumpstate::dumpModemLogs(int fd, const std::string &destDir) {
|
void Dumpstate::dumpModemLogs(int fd, const std::string &destDir) {
|
||||||
std::string extendedLogDir = MODEM_EXTENDED_LOG_DIRECTORY;
|
std::string extendedLogDir = MODEM_EXTENDED_LOG_DIRECTORY;
|
||||||
std::string modemLogMaskHistoryDir = MODEM_LOG_MASK_HISTORY_DIRECTORY;
|
std::string modemLogHistoryDir = MODEM_LOG_HISTORY_DIRECTORY;
|
||||||
|
|
||||||
dumpLogs(fd, extendedLogDir, destDir, 20, EXTENDED_LOG_PREFIX);
|
dumpLogs(fd, extendedLogDir, destDir, 20, EXTENDED_LOG_PREFIX);
|
||||||
dumpLogs(fd, modemLogMaskHistoryDir, destDir, 1, "LoggingMask");
|
dumpLogs(fd, modemLogHistoryDir, destDir, 2, "Logging");
|
||||||
dumpModemEFS(destDir);
|
dumpModemEFS(destDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue