diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2013-10-16 09:45:53 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-10-21 09:41:18 -0400 |
commit | 5c54a7bf48650a8d38f2e0b1748885f5c044f45f (patch) | |
tree | c89c0039a8d794d8b9fa9c0ed527183d831be050 /drivers/net/wireless/ath/ath10k/wmi.c | |
parent | 0ed00eea0961db3a007cbca727e3dd54e4bfd05f (diff) |
ath10k: fix endianess in prints
This fixes incorrect values being printed on
big-endian hosts.
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/wmi.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/wmi.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index 77238afbed75..a796d0b9a139 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c | |||
@@ -2211,7 +2211,7 @@ static int ath10k_wmi_main_cmd_init(struct ath10k *ar) | |||
2211 | } | 2211 | } |
2212 | 2212 | ||
2213 | ath10k_dbg(ATH10K_DBG_WMI, "wmi sending %d memory chunks info.\n", | 2213 | ath10k_dbg(ATH10K_DBG_WMI, "wmi sending %d memory chunks info.\n", |
2214 | __cpu_to_le32(ar->wmi.num_mem_chunks)); | 2214 | ar->wmi.num_mem_chunks); |
2215 | 2215 | ||
2216 | cmd->num_host_mem_chunks = __cpu_to_le32(ar->wmi.num_mem_chunks); | 2216 | cmd->num_host_mem_chunks = __cpu_to_le32(ar->wmi.num_mem_chunks); |
2217 | 2217 | ||
@@ -2224,10 +2224,10 @@ static int ath10k_wmi_main_cmd_init(struct ath10k *ar) | |||
2224 | __cpu_to_le32(ar->wmi.mem_chunks[i].req_id); | 2224 | __cpu_to_le32(ar->wmi.mem_chunks[i].req_id); |
2225 | 2225 | ||
2226 | ath10k_dbg(ATH10K_DBG_WMI, | 2226 | ath10k_dbg(ATH10K_DBG_WMI, |
2227 | "wmi chunk %d len %d requested, addr 0x%x\n", | 2227 | "wmi chunk %d len %d requested, addr 0x%llx\n", |
2228 | i, | 2228 | i, |
2229 | cmd->host_mem_chunks[i].size, | 2229 | ar->wmi.mem_chunks[i].len, |
2230 | cmd->host_mem_chunks[i].ptr); | 2230 | (unsigned long long)ar->wmi.mem_chunks[i].paddr); |
2231 | } | 2231 | } |
2232 | out: | 2232 | out: |
2233 | memcpy(&cmd->resource_config, &config, sizeof(config)); | 2233 | memcpy(&cmd->resource_config, &config, sizeof(config)); |
@@ -2302,7 +2302,7 @@ static int ath10k_wmi_10x_cmd_init(struct ath10k *ar) | |||
2302 | } | 2302 | } |
2303 | 2303 | ||
2304 | ath10k_dbg(ATH10K_DBG_WMI, "wmi sending %d memory chunks info.\n", | 2304 | ath10k_dbg(ATH10K_DBG_WMI, "wmi sending %d memory chunks info.\n", |
2305 | __cpu_to_le32(ar->wmi.num_mem_chunks)); | 2305 | ar->wmi.num_mem_chunks); |
2306 | 2306 | ||
2307 | cmd->num_host_mem_chunks = __cpu_to_le32(ar->wmi.num_mem_chunks); | 2307 | cmd->num_host_mem_chunks = __cpu_to_le32(ar->wmi.num_mem_chunks); |
2308 | 2308 | ||
@@ -2315,10 +2315,10 @@ static int ath10k_wmi_10x_cmd_init(struct ath10k *ar) | |||
2315 | __cpu_to_le32(ar->wmi.mem_chunks[i].req_id); | 2315 | __cpu_to_le32(ar->wmi.mem_chunks[i].req_id); |
2316 | 2316 | ||
2317 | ath10k_dbg(ATH10K_DBG_WMI, | 2317 | ath10k_dbg(ATH10K_DBG_WMI, |
2318 | "wmi chunk %d len %d requested, addr 0x%x\n", | 2318 | "wmi chunk %d len %d requested, addr 0x%llx\n", |
2319 | i, | 2319 | i, |
2320 | cmd->host_mem_chunks[i].size, | 2320 | ar->wmi.mem_chunks[i].len, |
2321 | cmd->host_mem_chunks[i].ptr); | 2321 | (unsigned long long)ar->wmi.mem_chunks[i].paddr); |
2322 | } | 2322 | } |
2323 | out: | 2323 | out: |
2324 | memcpy(&cmd->resource_config, &config, sizeof(config)); | 2324 | memcpy(&cmd->resource_config, &config, sizeof(config)); |