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);
|
fscanf(f, "%d", &removable);
|
||||||
fclose(f);
|
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);
|
printf("HDD: %s\n", str);
|
||||||
CMenuWidget * tempMenu = new CMenuWidget(str, NEUTRINO_ICON_SETTINGS);
|
CMenuWidget * tempMenu = new CMenuWidget(str, NEUTRINO_ICON_SETTINGS);
|
||||||
tempMenu->addItem( GenericMenuBack );
|
tempMenu->addItem( GenericMenuBack );
|
||||||
@@ -430,8 +430,12 @@ printf("CHDDChkExec: key %s\n", key.c_str());
|
|||||||
progress->showLocalStatus(percent);
|
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);
|
progress->showStatusMessageUTF(buf);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//printf("CHDDChkExec: %s\n", buf);
|
//printf("CHDDChkExec: %s\n", buf);
|
||||||
pclose(f);
|
pclose(f);
|
||||||
|
Reference in New Issue
Block a user