mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Fix build errors with debugging enabled
git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@512 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -101,7 +101,7 @@ static int obp_proplen(int node, const char *name)
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DEBUG_OBP
|
||||
static int looks_like_string(char *str, int len)
|
||||
static int looks_like_string(const char *str, int len)
|
||||
{
|
||||
int i;
|
||||
int ret = (str[len-1] == '\0');
|
||||
|
||||
@@ -139,8 +139,8 @@ do_command(esp_private_t *esp, sd_private_t *sd, int cmdlen, int replylen)
|
||||
static int
|
||||
ob_sd_read_sector(esp_private_t *esp, sd_private_t *sd, int offset)
|
||||
{
|
||||
DPRINTF("ob_sd_read_sector id %d %lx sector=%d\n",
|
||||
sd->id, (unsigned long)dest, offset);
|
||||
DPRINTF("ob_sd_read_sector id %d sector=%d\n",
|
||||
sd->id, offset);
|
||||
|
||||
// Setup command = Read(10)
|
||||
memset(esp->buffer, 0, 10);
|
||||
|
||||
Reference in New Issue
Block a user