From ea7e895f296d05ad23947f5379cc1fc13fe7dd6c Mon Sep 17 00:00:00 2001 From: tuxuser Date: Tue, 22 Jul 2014 18:43:29 +0200 Subject: [PATCH] Small modifications to consoleoutput --- OZMTool/ffsutil.cpp | 4 ++-- OZMTool/ozmtool.cpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/OZMTool/ffsutil.cpp b/OZMTool/ffsutil.cpp index fcfada4ad..e4df3445f 100644 --- a/OZMTool/ffsutil.cpp +++ b/OZMTool/ffsutil.cpp @@ -291,7 +291,7 @@ UINT8 FFSUtil::injectFile(QByteArray file) ret = findFileByGUID(rootIdx, guid, currIdx); if (ret) { - printf("* File [%s] not existant, inserting at the end of volume\n", qPrintable(guid)); + printf("* File not existant, inserting at the end of volume\n"); ret = insert(volIdx, file, CREATE_MODE_AFTER); if(ret) { printf("ERROR: Injection failed!\n"); @@ -300,7 +300,7 @@ UINT8 FFSUtil::injectFile(QByteArray file) } else { /* Found, replace at known index */ - printf("* File [%s] is already present -> Replacing it!\n", qPrintable(guid)); + printf("* File is already present -> Replacing it!\n"); ret = replace(currIdx, file, REPLACE_MODE_AS_IS); // as-is for whole File if(ret) { printf("ERROR: Replacing failed!\n"); diff --git a/OZMTool/ozmtool.cpp b/OZMTool/ozmtool.cpp index 19d1ff7bb..336ba5a3f 100644 --- a/OZMTool/ozmtool.cpp +++ b/OZMTool/ozmtool.cpp @@ -675,7 +675,7 @@ UINT8 OZMTool::FFSConvert(QString inputdir, QString outputdir) return ERR_ERROR; } - filepath = pathConcatenate(outputdir, currKext.fileName() + ".ffs"); + filepath = pathConcatenate(outputdir, currKext.baseName() + "Kext" + ".ffs"); fileWrite(filepath, out); if(ret) { printf("ERROR: Saving '%s' failed!\n", qPrintable(filepath)); @@ -689,6 +689,7 @@ UINT8 OZMTool::FFSConvert(QString inputdir, QString outputdir) return ERR_ERROR; } + printf("* Created successfully!\n"); } return ERR_SUCCESS;