diff options
author | kierancyphus <kierancyphus@google.com> | 2022-12-05 14:04:45 +0800 |
---|---|---|
committer | Kieran Cyphus <kierancyphus@google.com> | 2022-12-07 06:55:42 +0000 |
commit | ebeab15ad7f94f8af26d34c91d3b437c13616ccf (patch) | |
tree | da2d2f16d9c01a43946ffdc7f2e475bfab659b1a | |
parent | d59bb0d1bf12c37edb8746d5ebc946a9b2acb09d (diff) | |
download | gs201-ebeab15ad7f94f8af26d34c91d3b437c13616ccf.tar.gz |
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
Merged-In: Id87f381a4895399a035ea4fe55d132e31d5d796c
-rw-r--r-- | dumpstate/Dumpstate.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dumpstate/Dumpstate.cpp b/dumpstate/Dumpstate.cpp index eba5f87..66354fd 100644 --- a/dumpstate/Dumpstate.cpp +++ b/dumpstate/Dumpstate.cpp @@ -30,7 +30,7 @@ #include "DumpstateUtil.h" #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 RIL_LOG_DIRECTORY "/data/vendor/radio" #define RIL_LOG_DIRECTORY_PROPERTY "persist.vendor.ril.log.base_dir" @@ -1164,10 +1164,10 @@ void Dumpstate::dumpModemSection(int fd) { void Dumpstate::dumpModemLogs(int fd, const std::string &destDir) { 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, modemLogMaskHistoryDir, destDir, 1, "LoggingMask"); + dumpLogs(fd, modemLogHistoryDir, destDir, 2, "Logging"); dumpModemEFS(destDir); } |