mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
hdd_menu: remove extraneous '\n' (thanks Miky1968)
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@875 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Commit: 205c410487
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2010-10-31 (Sun, 31 Oct 2010)
This commit is contained in:
@@ -154,7 +154,7 @@ int CHDDMenuHandler::doMenu ()
|
||||
fscanf(f, "%d", &removable);
|
||||
fclose(f);
|
||||
|
||||
snprintf(str, sizeof(str), "%s %s (%s-%s %lld %s)\n", g_Locale->getText(LOCALE_HDD_MANAGE), namelist[i]->d_name, vendor, model, megabytes < 10000 ? megabytes : megabytes/1000, megabytes < 10000 ? "MB" : "GB");
|
||||
snprintf(str, sizeof(str), "%s %s (%s-%s %lld %s)", g_Locale->getText(LOCALE_HDD_MANAGE), namelist[i]->d_name, vendor, model, megabytes < 10000 ? megabytes : megabytes/1000, megabytes < 10000 ? "MB" : "GB");
|
||||
printf("HDD: %s\n", str);
|
||||
CMenuWidget * tempMenu = new CMenuWidget(str, NEUTRINO_ICON_SETTINGS);
|
||||
tempMenu->addItem( GenericMenuBack );
|
||||
@@ -430,9 +430,13 @@ printf("CHDDChkExec: key %s\n", key.c_str());
|
||||
progress->showLocalStatus(percent);
|
||||
}
|
||||
}
|
||||
else if(!strncmp(buf, "Pass", 4))
|
||||
else if(!strncmp(buf, "Pass", 4)) {
|
||||
char *t = strrchr(buf, '\n');
|
||||
if (t)
|
||||
*t = 0;
|
||||
progress->showStatusMessageUTF(buf);
|
||||
}
|
||||
}
|
||||
//printf("CHDDChkExec: %s\n", buf);
|
||||
pclose(f);
|
||||
progress->showGlobalStatus(100);
|
||||
|
Reference in New Issue
Block a user