]> www.infradead.org Git - mtd-utils.git/commit
mtd-utils: xalloc: simplify/unify error messages
authorMike Frysinger <vapier@gentoo.org>
Fri, 1 Oct 2010 05:45:06 +0000 (01:45 -0400)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 1 Oct 2010 06:33:32 +0000 (09:33 +0300)
commit3afb8f079dda8439c17f191ff593b7c4bf1c4b57
tree98e366b65e826513c078feaa31e23921a03ebd7f
parentee3c2bef131ff1d6723b66d5cec3c8738954b407
mtd-utils: xalloc: simplify/unify error messages

I'm not sure that if we actually are out of memory that declaring the
failing allocation size is useful in the output.  So use the same
simple string in every error message to cut down on size (there will
only be one copy of this at runtime).  Size is a much more common
concern than handling OOM issues which most likely aren't the fault
of mtd-utils in the first place.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
include/xalloc.h