]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: correct debugfs data dumped from sram
authorJay Sternberg <jay.e.sternberg@intel.com>
Tue, 11 Jan 2011 23:41:00 +0000 (15:41 -0800)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 21 Jan 2011 23:50:33 +0000 (15:50 -0800)
commit734bb734662ad31142ac60a31d178c0a4af4e229
tree76f261bf903ce7aa7458bec2a26aa115698efe2c
parentd706d1b3025ba8a6fc16f1a4a9d2dbaf41f9d97e
iwlwifi: correct debugfs data dumped from sram

the sram data dumped through the debugfs interface would only work properly
when dumping data on even u32 boundaries and swap bytes based on endianness
on that boundary making byte arrays impossible to read.

now addresses are displayed at the start of every line and the data is
displayed consistently if dumping 1 byte or 20 and regardless of what is the
starting address.

if no lenght given, address displayed is u32 in device format

Signed-off-by: Jay Sternberg <jay.e.sternberg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-debugfs.c