From: BogDan Vatra Date: Sat, 28 Dec 2013 15:16:09 +0000 (+0200) Subject: Print adb commands in verbose mode. X-Git-Tag: accepted/tizen/ivi/20140115.202013~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b741957d23aa4e61d7f889e2e74636ff680ed0cb;p=platform%2Fupstream%2Fqttools.git Print adb commands in verbose mode. Change-Id: I3b779f82ef5b4b474eda9e6f2911a7bf46b8c87d Reviewed-by: Eskil Abrahamsen Blomfeldt --- diff --git a/src/androiddeployqt/main.cpp b/src/androiddeployqt/main.cpp index 64ee5b9..9191b3e 100644 --- a/src/androiddeployqt/main.cpp +++ b/src/androiddeployqt/main.cpp @@ -1381,6 +1381,9 @@ FILE *runAdb(const Options &options, const QString &arguments) adb = QString::fromLatin1("\"%1\"%2 %3").arg(adb).arg(installOption).arg(arguments); + if (options.verbose) + fprintf(stdout, "Running command \"%s\"\n", adb.toLocal8Bit().constData()); + FILE *adbCommand = popen(adb.toLocal8Bit().constData(), "r"); if (adbCommand == 0) { fprintf(stderr, "Cannot start adb: %s\n", qPrintable(adb));