From 788397f60c3f3a666b0ec781ba1bf4d30774c9a8 Mon Sep 17 00:00:00 2001 From: Nikolaj Schlej Date: Sat, 19 Sep 2015 07:58:58 +0200 Subject: [PATCH] UF 0.10.1 - added newline to the messages - corrected a typo in quick help string --- UEFIFind/uefifind_main.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/UEFIFind/uefifind_main.cpp b/UEFIFind/uefifind_main.cpp index b739874..dbbd1d4 100644 --- a/UEFIFind/uefifind_main.cpp +++ b/UEFIFind/uefifind_main.cpp @@ -95,7 +95,7 @@ int main(int argc, char *argv[]) // Split the read line QList list = line.split(' '); if (list.count() < 3) { - std::cout << line.toStdString() << "skipped, too few arguments" << std::endl; + std::cout << line.toStdString() << "skipped, too few arguments" << std::endl << std::endl; continue; } // Get search mode @@ -107,7 +107,7 @@ int main(int argc, char *argv[]) else if (list.at(0) == QString("all")) mode = SEARCH_MODE_ALL; else { - std::cout << line.toStdString() << "skipped, invalid search mode" << std::endl; + std::cout << line.toStdString() << "skipped, invalid search mode" << std::endl << std::endl; continue; } @@ -118,7 +118,7 @@ int main(int argc, char *argv[]) else if (list.at(1) == QString("count")) count = true; else { - std::cout << line.toStdString() << "skipped, invalid result type" << std::endl; + std::cout << line.toStdString() << "skipped, invalid result type" << std::endl << std::endl; continue; } @@ -126,13 +126,13 @@ int main(int argc, char *argv[]) QString found; result = w.find(mode, count, list.at(2), found); if (result) { - std::cout << line.toStdString() << "skipped, find failed with error " << result << std::endl; + std::cout << line.toStdString() << "skipped, find failed with error " << result << std::endl << std::endl; continue; } if (found.isEmpty()) { // Nothing is found - std::cout << line.toStdString() << "nothing found" << std::endl; + std::cout << line.toStdString() << "nothing found" << std::endl << std::endl; } else { // Print result @@ -148,9 +148,9 @@ int main(int argc, char *argv[]) return ERR_SUCCESS; } else { - std::cout << "UEFIFind 0.10.0" << std::endl << std::endl << + std::cout << "UEFIFind 0.10.1" << std::endl << std::endl << "Usage: uefifind {header | body | all} {list | count} pattern imagefile" << std::endl << - " or uefitool file patternsfile imagefile" << std::endl; + " or uefifind file patternsfile imagefile" << std::endl; return ERR_INVALID_PARAMETER; } }