From 4d2ce949b3b41f8bf0af446fa20205ddd229e579 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 3 Nov 2013 11:08:18 +0100 Subject: Use cutelogger for Rockbox Utility internal trace. Change tracing from qDebug() to use cutelogger, which is available under the LGPL2.1. This allows to automatically add filename and line number to the log, and also provides multiple log levels. Change-Id: I5dbdaf902ba54ea99f07ae10a07467c52fdac910 --- rbutil/rbutilqt/base/bootloaderinstallmpio.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'rbutil/rbutilqt/base/bootloaderinstallmpio.cpp') diff --git a/rbutil/rbutilqt/base/bootloaderinstallmpio.cpp b/rbutil/rbutilqt/base/bootloaderinstallmpio.cpp index 52a6f351f1..97b68f7f61 100644 --- a/rbutil/rbutilqt/base/bootloaderinstallmpio.cpp +++ b/rbutil/rbutilqt/base/bootloaderinstallmpio.cpp @@ -20,6 +20,7 @@ #include #include "bootloaderinstallbase.h" #include "bootloaderinstallmpio.h" +#include "Logger.h" #include "../mkmpioboot/mkmpioboot.h" @@ -46,7 +47,7 @@ bool BootloaderInstallMpio::install(void) if(m_offile.isEmpty()) return false; - qDebug() << "[BootloaderInstallMpio] installing bootloader"; + LOG_INFO() << "installing bootloader"; // download firmware from server emit logItem(tr("Downloading bootloader file"), LOGINFO); @@ -59,7 +60,7 @@ bool BootloaderInstallMpio::install(void) void BootloaderInstallMpio::installStage2(void) { - qDebug() << "[BootloaderInstallMpio] installStage2"; + LOG_INFO() << "installStage2"; int origin = 0xe0000; /* MPIO HD200 bootloader address */ @@ -107,14 +108,14 @@ void BootloaderInstallMpio::installStage2(void) break; } - qDebug() << "[BootloaderInstallMpio] Patching original firmware failed:" << error; + LOG_ERROR() << "Patching original firmware failed:" << error; emit logItem(tr("Patching original firmware failed: %1").arg(error), LOGERROR); emit done(true); return; } //end of install - qDebug() << "[BootloaderInstallMpio] install successful"; + LOG_INFO() << "install successful"; emit logItem(tr("Success: modified firmware file created"), LOGINFO); logInstall(LogAdd); emit done(false); -- cgit v1.2.3