diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-11-03 11:08:18 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-11-04 23:32:52 +0100 |
commit | 4d2ce949b3b41f8bf0af446fa20205ddd229e579 (patch) | |
tree | 01fa19471d9831b296bea5d7049f765e38b30bbb /rbutil/rbutilqt/base/bootloaderinstallmpio.cpp | |
parent | 335ec75d60bba82f23fc47b20f9390e0cba9c9c5 (diff) | |
download | rockbox-4d2ce949b3b41f8bf0af446fa20205ddd229e579.tar.gz rockbox-4d2ce949b3b41f8bf0af446fa20205ddd229e579.zip |
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
Diffstat (limited to 'rbutil/rbutilqt/base/bootloaderinstallmpio.cpp')
-rw-r--r-- | rbutil/rbutilqt/base/bootloaderinstallmpio.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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 @@ | |||
20 | #include <QtCore> | 20 | #include <QtCore> |
21 | #include "bootloaderinstallbase.h" | 21 | #include "bootloaderinstallbase.h" |
22 | #include "bootloaderinstallmpio.h" | 22 | #include "bootloaderinstallmpio.h" |
23 | #include "Logger.h" | ||
23 | 24 | ||
24 | #include "../mkmpioboot/mkmpioboot.h" | 25 | #include "../mkmpioboot/mkmpioboot.h" |
25 | 26 | ||
@@ -46,7 +47,7 @@ bool BootloaderInstallMpio::install(void) | |||
46 | if(m_offile.isEmpty()) | 47 | if(m_offile.isEmpty()) |
47 | return false; | 48 | return false; |
48 | 49 | ||
49 | qDebug() << "[BootloaderInstallMpio] installing bootloader"; | 50 | LOG_INFO() << "installing bootloader"; |
50 | 51 | ||
51 | // download firmware from server | 52 | // download firmware from server |
52 | emit logItem(tr("Downloading bootloader file"), LOGINFO); | 53 | emit logItem(tr("Downloading bootloader file"), LOGINFO); |
@@ -59,7 +60,7 @@ bool BootloaderInstallMpio::install(void) | |||
59 | 60 | ||
60 | void BootloaderInstallMpio::installStage2(void) | 61 | void BootloaderInstallMpio::installStage2(void) |
61 | { | 62 | { |
62 | qDebug() << "[BootloaderInstallMpio] installStage2"; | 63 | LOG_INFO() << "installStage2"; |
63 | 64 | ||
64 | int origin = 0xe0000; /* MPIO HD200 bootloader address */ | 65 | int origin = 0xe0000; /* MPIO HD200 bootloader address */ |
65 | 66 | ||
@@ -107,14 +108,14 @@ void BootloaderInstallMpio::installStage2(void) | |||
107 | break; | 108 | break; |
108 | } | 109 | } |
109 | 110 | ||
110 | qDebug() << "[BootloaderInstallMpio] Patching original firmware failed:" << error; | 111 | LOG_ERROR() << "Patching original firmware failed:" << error; |
111 | emit logItem(tr("Patching original firmware failed: %1").arg(error), LOGERROR); | 112 | emit logItem(tr("Patching original firmware failed: %1").arg(error), LOGERROR); |
112 | emit done(true); | 113 | emit done(true); |
113 | return; | 114 | return; |
114 | } | 115 | } |
115 | 116 | ||
116 | //end of install | 117 | //end of install |
117 | qDebug() << "[BootloaderInstallMpio] install successful"; | 118 | LOG_INFO() << "install successful"; |
118 | emit logItem(tr("Success: modified firmware file created"), LOGINFO); | 119 | emit logItem(tr("Success: modified firmware file created"), LOGINFO); |
119 | logInstall(LogAdd); | 120 | logInstall(LogAdd); |
120 | emit done(false); | 121 | emit done(false); |