summaryrefslogtreecommitdiff
path: root/src/helper/command.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-07 10:55:59 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-07 10:55:59 +0000
commitd9ac6b1d09443c165c497bb99c07f04617386ae7 (patch)
tree6cd803100c513d86f2a8d92ca274e2b6e75780e1 /src/helper/command.c
parent96261e827782235709fcdfb2c1bbb93fedc977be (diff)
downloadopenocd_libswd-d9ac6b1d09443c165c497bb99c07f04617386ae7.tar.gz
openocd_libswd-d9ac6b1d09443c165c497bb99c07f04617386ae7.tar.bz2
openocd_libswd-d9ac6b1d09443c165c497bb99c07f04617386ae7.tar.xz
openocd_libswd-d9ac6b1d09443c165c497bb99c07f04617386ae7.zip
alloc_printf and alloc_vprintf
git-svn-id: svn://svn.berlios.de/openocd/trunk@465 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/command.c')
-rw-r--r--src/helper/command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helper/command.c b/src/helper/command.c
index 5df12901..8d5a77ea 100644
--- a/src/helper/command.c
+++ b/src/helper/command.c
@@ -267,7 +267,7 @@ void command_print_n(command_context_t *context, char *format, ...)
va_list ap;
va_start(ap, format);
- string = alloc_printf(format, ap);
+ string = alloc_vprintf(format, ap);
if (string != NULL)
{
context->output_handler(context, string);
@@ -284,10 +284,10 @@ void command_print(command_context_t *context, char *format, ...)
va_list ap;
va_start(ap, format);
- string = alloc_printf(format, ap);
+ string = alloc_vprintf(format, ap);
if (string != NULL)
{
- strcat(string, "\n"); /* alloc_printf guaranteed the buffer to be at least one char longer */
+ strcat(string, "\n"); /* alloc_vprintf guaranteed the buffer to be at least one char longer */
context->output_handler(context, string);
free(string);
}