summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/recovery.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-08-21 20:50:58 +0200
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-08-22 10:51:33 +0200
commit65b455b123c7e2b835a0b7148f9bae584f95000e (patch)
treeef75e48f7d4e3f76c0701603e48042d31732b935 /fs/ubifs/recovery.c
parentUBIFS: fix replay regression (diff)
downloadlinux-65b455b123c7e2b835a0b7148f9bae584f95000e.tar.xz
linux-65b455b123c7e2b835a0b7148f9bae584f95000e.zip
UBIFS: fix complaints about too small debug buffer size
When debugging is enabled, we use a temporary on-stack buffer for formatting the key strings like "(11368871, direntry, 0xcd0750)". The buffer size is 32 bytes and sometimes it is not enough to fit the key string - e.g., when inode numbers are high. This is not fatal, but the key strings are incomplete and UBIFS complains like this: UBIFS assert failed in dbg_snprintf_key at 137 (pid 1) This is a regression caused by "515315a UBIFS: fix key printing". Fix the issue by increasing the buffer to 48 bytes. Reported-by: Michael Hench <michaelhench@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Tested-by: Michael Hench <michaelhench@gmail.com> Cc: stable@vger.kernel.org [v3.3+]
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions