Example #1
0
static void __print_resources(struct resource *res, int indent)
{
	struct resource *r;
	int i;

	for (i = 0; i < indent; i++)
		printf("  ");

	printf("0x%08x - 0x%08x (size 0x%08x) %s\n", res->start,
			res->start + res->size - 1,
			res->size, res->name);

	list_for_each_entry(r, &res->children, sibling)
		__print_resources(r, indent + 1);
}
Example #2
0
static void __print_resources(struct resource *res, int indent)
{
	struct resource *r;
	int i;

	for (i = 0; i < indent; i++)
		printf("  ");

	printf(PRINTF_CONVERSION_RESOURCE " - " PRINTF_CONVERSION_RESOURCE
			" (size " PRINTF_CONVERSION_RESOURCE ") %s\n", res->start,
			res->end, resource_size(res), res->name);

	list_for_each_entry(r, &res->children, sibling)
		__print_resources(r, indent + 1);
}
Example #3
0
static void print_resources(struct resource *res)
{
	__print_resources(res, 0);
}