Skip to content
Snippets Groups Projects
Commit 9190a3eb authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Simon Glass
Browse files

sandbox: remove stray DEBUG


DEBUG should not be defined in production code.
Change printf() to debug() where this writes a debug message.

Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: default avatarAlexander Graf <agraf@suse.de>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 2a87f7fd
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/* /*
* Copyright (c) 2011 The Chromium OS Authors. * Copyright (c) 2011 The Chromium OS Authors.
*/ */
#define DEBUG
#include <common.h> #include <common.h>
#include <dm.h> #include <dm.h>
#include <errno.h> #include <errno.h>
...@@ -105,8 +105,8 @@ void *phys_to_virt(phys_addr_t paddr) ...@@ -105,8 +105,8 @@ void *phys_to_virt(phys_addr_t paddr)
state = state_get_current(); state = state_get_current();
list_for_each_entry(mentry, &state->mapmem_head, sibling_node) { list_for_each_entry(mentry, &state->mapmem_head, sibling_node) {
if (mentry->tag == paddr) { if (mentry->tag == paddr) {
printf("%s: Used map from %lx to %p\n", __func__, debug("%s: Used map from %lx to %p\n", __func__,
(ulong)paddr, mentry->ptr); (ulong)paddr, mentry->ptr);
return mentry->ptr; return mentry->ptr;
} }
} }
...@@ -152,7 +152,7 @@ phys_addr_t virt_to_phys(void *ptr) ...@@ -152,7 +152,7 @@ phys_addr_t virt_to_phys(void *ptr)
__func__, ptr, (ulong)gd->ram_size); __func__, ptr, (ulong)gd->ram_size);
os_abort(); os_abort();
} }
printf("%s: Used map from %p to %lx\n", __func__, ptr, mentry->tag); debug("%s: Used map from %p to %lx\n", __func__, ptr, mentry->tag);
return mentry->tag; return mentry->tag;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment