From 63e5205cd2f693bbfa54411f2dd20354bd30ffd8 Mon Sep 17 00:00:00 2001 From: Brian Swetland Date: Mon, 28 Jun 2010 11:14:26 -0700 Subject: [PATCH] fastboot: make it so I can actually see the bootloader chatter - prefix bootloader messages with (bootloader) - remove the fancy right justified no newline business Change-Id: Ica16ebe6a25971db423c5db06300a280d93faf3e Signed-off-by: Brian Swetland --- fastboot/engine.c | 3 ++- fastboot/protocol.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fastboot/engine.c b/fastboot/engine.c index 6d62c6e2..8ba202cd 100644 --- a/fastboot/engine.c +++ b/fastboot/engine.c @@ -285,7 +285,8 @@ void fb_execute_queue(usb_handle *usb) a->start = now(); if (start < 0) start = a->start; if (a->msg) { - fprintf(stderr,"%30s... ",a->msg); + // fprintf(stderr,"%30s... ",a->msg); + fprintf(stderr,"%s...\n",a->msg); } if (a->op == OP_DOWNLOAD) { status = fb_download_data(usb, a->data, a->size); diff --git a/fastboot/protocol.c b/fastboot/protocol.c index c788a12f..3948363d 100644 --- a/fastboot/protocol.c +++ b/fastboot/protocol.c @@ -62,7 +62,7 @@ static int check_response(usb_handle *usb, unsigned size, } if(!memcmp(status, "INFO", 4)) { - fprintf(stderr,"%s\n", status); + fprintf(stderr,"(bootloader) %s\n", status + 4); continue; }