Skip to content
Commit 65b455b1 authored by Artem Bityutskiy's avatar Artem Bityutskiy
Browse files

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 "515315a1

 UBIFS: fix key printing".

Fix the issue by increasing the buffer to 48 bytes.

Reported-by: default avatarMichael Hench <michaelhench@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tested-by: default avatarMichael Hench <michaelhench@gmail.com>
Cc: stable@vger.kernel.org [v3.3+]
parent c212f402
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment