|
From: <oh...@ma...> - 2009-05-03 17:10:18
|
Author: oharboe
Date: 2009-05-03 17:10:16 +0200 (Sun, 03 May 2009)
New Revision: 1594
Modified:
trunk/src/flash/avrf.c
trunk/src/target/avrt.c
Log:
Piotr Esden-Tempski <pi...@es...> Mac OS X compile fixes
Modified: trunk/src/flash/avrf.c
===================================================================
--- trunk/src/flash/avrf.c 2009-05-03 03:35:01 UTC (rev 1593)
+++ trunk/src/flash/avrf.c 2009-05-03 15:10:16 UTC (rev 1594)
@@ -247,13 +247,13 @@
static int avrf_erase(struct flash_bank_s *bank, int first, int last)
{
- LOG_INFO(__FUNCTION__);
+ LOG_INFO("%s", __FUNCTION__);
return ERROR_OK;
}
static int avrf_protect(struct flash_bank_s *bank, int set, int first, int last)
{
- LOG_INFO(__FUNCTION__);
+ LOG_INFO("%s", __FUNCTION__);
return ERROR_OK;
}
@@ -386,7 +386,7 @@
static int avrf_protect_check(struct flash_bank_s *bank)
{
- LOG_INFO(__FUNCTION__);
+ LOG_INFO("%s", __FUNCTION__);
return ERROR_OK;
}
@@ -495,6 +495,6 @@
command_print(cmd_ctx, "avr mass erase failed");
}
- LOG_DEBUG(__FUNCTION__);
+ LOG_DEBUG("%s", __FUNCTION__);
return ERROR_OK;
}
Modified: trunk/src/target/avrt.c
===================================================================
--- trunk/src/target/avrt.c 2009-05-03 03:35:01 UTC (rev 1593)
+++ trunk/src/target/avrt.c 2009-05-03 15:10:16 UTC (rev 1594)
@@ -119,7 +119,7 @@
int avr_register_commands(struct command_context_s *cmd_ctx)
{
- LOG_DEBUG(__FUNCTION__);
+ LOG_DEBUG("%s", __FUNCTION__);
return ERROR_OK;
}
@@ -135,19 +135,19 @@
int avr_init_target(struct command_context_s *cmd_ctx, struct target_s *target)
{
- LOG_DEBUG(__FUNCTION__);
+ LOG_DEBUG("%s", __FUNCTION__);
return ERROR_OK;
}
int avr_quit(void)
{
- LOG_DEBUG(__FUNCTION__);
+ LOG_DEBUG("%s", __FUNCTION__);
return ERROR_OK;
}
int avr_arch_state(struct target_s *target)
{
- LOG_DEBUG(__FUNCTION__);
+ LOG_DEBUG("%s", __FUNCTION__);
return ERROR_OK;
}
@@ -158,25 +158,25 @@
target->state = TARGET_HALTED;
}
- LOG_DEBUG(__FUNCTION__);
+ LOG_DEBUG("%s", __FUNCTION__);
return ERROR_OK;
}
int avr_halt(target_t *target)
{
- LOG_DEBUG(__FUNCTION__);
+ LOG_DEBUG("%s", __FUNCTION__);
return ERROR_OK;
}
int avr_resume(struct target_s *target, int current, u32 address, int handle_breakpoints, int debug_execution)
{
- LOG_DEBUG(__FUNCTION__);
+ LOG_DEBUG("%s", __FUNCTION__);
return ERROR_OK;
}
int avr_step(struct target_s *target, int current, u32 address, int handle_breakpoints)
{
- LOG_DEBUG(__FUNCTION__);
+ LOG_DEBUG("%s", __FUNCTION__);
return ERROR_OK;
}
@@ -184,7 +184,7 @@
{
target->state = TARGET_RESET;
- LOG_DEBUG(__FUNCTION__);
+ LOG_DEBUG("%s", __FUNCTION__);
return ERROR_OK;
}
@@ -192,13 +192,13 @@
{
target->state = TARGET_RUNNING;
- LOG_DEBUG(__FUNCTION__);
+ LOG_DEBUG("%s", __FUNCTION__);
return ERROR_OK;
}
int avr_soft_reset_halt(struct target_s *target)
{
- LOG_DEBUG(__FUNCTION__);
+ LOG_DEBUG("%s", __FUNCTION__);
return ERROR_OK;
}
|