cosmetic fixes to debug output + phasing out printf() in favour of logging system. From Pavel Chromy <chromy@asix.cz>
git-svn-id: svn://svn.berlios.de/openocd/trunk@326 b42882b7-edfa-0310-969c-e2dbd0fdcd60__archive__
parent
885ae471ad
commit
958f845f4b
|
@ -119,7 +119,7 @@ int s3c2440_read_block_data(struct nand_device_s *device, u8 *data, int data_siz
|
|||
u32 nfdata = s3c24xx_info->data;
|
||||
u32 tmp;
|
||||
|
||||
printf("%s: reading data: %p, %p, %d\n", __func__, device, data, data_size);
|
||||
INFO("%s: reading data: %p, %p, %d\n", __func__, device, data, data_size);
|
||||
|
||||
if (target->state != TARGET_HALTED) {
|
||||
ERROR("target must be halted to use S3C24XX NAND flash controller");
|
||||
|
|
|
@ -45,7 +45,7 @@ void log_setCallback(logCallback c, void *p)
|
|||
|
||||
static char *log_strings[5] =
|
||||
{
|
||||
"User: ",
|
||||
"User: ",
|
||||
"Error: ",
|
||||
"Warning:",
|
||||
"Info: ",
|
||||
|
|
|
@ -209,8 +209,8 @@ int ep93xx_init(void)
|
|||
gpio_data_register = gpio_controller + 0x08;
|
||||
gpio_data_direction_register = gpio_controller + 0x18;
|
||||
|
||||
printf("gpio_data_register = %p\n", gpio_data_register);
|
||||
printf("gpio_data_direction_reg = %p\n", gpio_data_direction_register);
|
||||
INFO("gpio_data_register = %p\n", gpio_data_register);
|
||||
INFO("gpio_data_direction_reg = %p\n", gpio_data_direction_register);
|
||||
/*
|
||||
* Configure bit 0 (TDO) as an input, and bits 1-5 (TDI, TCK
|
||||
* TMS, TRST, SRST) as outputs. Drive TDI and TCK low, and
|
||||
|
|
|
@ -1402,7 +1402,7 @@ static int ft2232_init_ftd2xx(u16 vid, u16 pid, int more, int *try_more)
|
|||
}
|
||||
else
|
||||
{
|
||||
printf("ListDevices: NONE\n");
|
||||
ERROR("ListDevices: NONE\n");
|
||||
}
|
||||
return ERROR_JTAG_INIT_FAILED;
|
||||
}
|
||||
|
|
|
@ -327,11 +327,11 @@ int handle_xsvf_command(struct command_context_s *cmd_ctx, char *cmd, char **arg
|
|||
}
|
||||
break;
|
||||
case 0x0a: /* XSETDRMASKS */
|
||||
printf("unsupported XSETSDRMASKS\n");
|
||||
ERROR("unsupported XSETSDRMASKS\n");
|
||||
unsupported = 1;
|
||||
break;
|
||||
case 0x0b: /* XSDRINC */
|
||||
printf("unsupported XSDRINC\n");
|
||||
ERROR("unsupported XSDRINC\n");
|
||||
unsupported = 1;
|
||||
break;
|
||||
case 0x0c: /* XSDRB */
|
||||
|
@ -458,7 +458,7 @@ int handle_xsvf_command(struct command_context_s *cmd_ctx, char *cmd, char **arg
|
|||
}
|
||||
break;
|
||||
default:
|
||||
printf("unknown xsvf command (0x%2.2x)\n", c);
|
||||
ERROR("unknown xsvf command (0x%2.2x)\n", c);
|
||||
unsupported = 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue