diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2016-08-19 05:31:46 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-08-19 05:31:46 -0700 |
commit | a472a38b37ea12e42137a8484ccd20bba6ed1d39 (patch) | |
tree | 38b77e87d0a1c5a8fb51df1c95c5504fa4d5ff56 | |
parent | a146e281c3047419da15e1a9399ee18b33614b2b (diff) | |
parent | 0ad372f5b881be024322129f980b5843ffeeae29 (diff) | |
download | android_hardware_qcom_wlan-a472a38b37ea12e42137a8484ccd20bba6ed1d39.tar.gz android_hardware_qcom_wlan-a472a38b37ea12e42137a8484ccd20bba6ed1d39.tar.bz2 android_hardware_qcom_wlan-a472a38b37ea12e42137a8484ccd20bba6ed1d39.zip |
Merge "WiFi-HAL: Do not dump empty buffer in hexdump"
-rw-r--r-- | qcwcn/wifi_hal/common.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qcwcn/wifi_hal/common.cpp b/qcwcn/wifi_hal/common.cpp index 68b9130..d5df62d 100644 --- a/qcwcn/wifi_hal/common.cpp +++ b/qcwcn/wifi_hal/common.cpp @@ -243,6 +243,8 @@ void hexdump(void *buf, u16 len) { int i=0; char *bytes = (char *)buf; + if (len == 0) + return; ALOGV("******HexDump len:%d*********", len); for (i = 0; ((i + 7) < len); i+=8) { ALOGV("%02x %02x %02x %02x %02x %02x %02x %02x", |