console: Make sure xzalloc is only used when it's available
To make it possible to call the pr_* functions very early before
malloc is initialized test if malloc is available before using
it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 663b895 commit ab989e458866f0d3efdcdbfd1d8ff8261fcf51a9
@Sascha Hauer Sascha Hauer authored on 9 Dec 2014
Showing 1 changed file
View
common/console_common.c