diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debugfs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debugfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c index fb844859a443..8c374bf043d0 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c | |||
@@ -410,7 +410,7 @@ static ssize_t iwl_dbgfs_nvm_read(struct file *file, | |||
410 | pos += scnprintf(buf + pos, buf_size - pos, "0x%.4x ", ofs); | 410 | pos += scnprintf(buf + pos, buf_size - pos, "0x%.4x ", ofs); |
411 | hex_dump_to_buffer(ptr + ofs, 16 , 16, 2, buf + pos, | 411 | hex_dump_to_buffer(ptr + ofs, 16 , 16, 2, buf + pos, |
412 | buf_size - pos, 0); | 412 | buf_size - pos, 0); |
413 | pos += strlen(buf); | 413 | pos += strlen(buf + pos); |
414 | if (buf_size - pos > 0) | 414 | if (buf_size - pos > 0) |
415 | buf[pos++] = '\n'; | 415 | buf[pos++] = '\n'; |
416 | } | 416 | } |
@@ -909,7 +909,7 @@ static ssize_t iwl_dbgfs_traffic_log_read(struct file *file, | |||
909 | "0x%.4x ", ofs); | 909 | "0x%.4x ", ofs); |
910 | hex_dump_to_buffer(ptr + ofs, 16, 16, 2, | 910 | hex_dump_to_buffer(ptr + ofs, 16, 16, 2, |
911 | buf + pos, bufsz - pos, 0); | 911 | buf + pos, bufsz - pos, 0); |
912 | pos += strlen(buf); | 912 | pos += strlen(buf + pos); |
913 | if (bufsz - pos > 0) | 913 | if (bufsz - pos > 0) |
914 | buf[pos++] = '\n'; | 914 | buf[pos++] = '\n'; |
915 | } | 915 | } |
@@ -932,7 +932,7 @@ static ssize_t iwl_dbgfs_traffic_log_read(struct file *file, | |||
932 | "0x%.4x ", ofs); | 932 | "0x%.4x ", ofs); |
933 | hex_dump_to_buffer(ptr + ofs, 16, 16, 2, | 933 | hex_dump_to_buffer(ptr + ofs, 16, 16, 2, |
934 | buf + pos, bufsz - pos, 0); | 934 | buf + pos, bufsz - pos, 0); |
935 | pos += strlen(buf); | 935 | pos += strlen(buf + pos); |
936 | if (bufsz - pos > 0) | 936 | if (bufsz - pos > 0) |
937 | buf[pos++] = '\n'; | 937 | buf[pos++] = '\n'; |
938 | } | 938 | } |