diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-08-21 21:50:58 +0300 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-08-22 11:51:33 +0300 |
commit | 65b455b123c7e2b835a0b7148f9bae584f95000e (patch) | |
tree | ef75e48f7d4e3f76c0701603e48042d31732b935 /lib/textsearch.c | |
parent | c212f4020de7b5d35a71327d1483120a698d60a0 (diff) |
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 'lib/textsearch.c')
0 files changed, 0 insertions, 0 deletions