Author: akhaldi
Date: Fri Mar 15 21:59:57 2013
New Revision: 58510
URL:
http://svn.reactos.org/svn/reactos?rev=58510&view=rev
Log:
[APPLICATIONS]
* Fix some format specifiers.
Modified:
trunk/reactos/base/applications/cmdutils/hostname/hostname.c
trunk/reactos/base/applications/mscutils/eventvwr/eventvwr.c
trunk/reactos/base/applications/setup16/main.c
trunk/reactos/base/applications/shutdown/misc.c
Modified: trunk/reactos/base/applications/cmdutils/hostname/hostname.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/cmdutils…
==============================================================================
--- trunk/reactos/base/applications/cmdutils/hostname/hostname.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/cmdutils/hostname/hostname.c [iso-8859-1] Fri Mar 15
21:59:57 2013
@@ -44,7 +44,7 @@
printf ("%s\n", ComputerName);
return EXIT_SUCCESS;
}
- fprintf (stderr, "%s: Win32 error %ld.\n",
+ fprintf (stderr, "%s: Win32 error %lu.\n",
argv[0], GetLastError());
return EXIT_FAILURE;
}else{
Modified: trunk/reactos/base/applications/mscutils/eventvwr/eventvwr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/eventvwr.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/eventvwr.c [iso-8859-1] Fri Mar 15
21:59:57 2013
@@ -695,7 +695,7 @@
else
_snwprintf(szWindowTitle+i, dwMaxLength, L"%s", lpComputerName);
- swprintf(szStatusText, L"%s has %d event(s)", lpLogName, dwTotalRecords);
+ swprintf(szStatusText, L"%s has %lu event(s)", lpLogName, dwTotalRecords);
// Update the status bar
SendMessageW(hwndStatus, SB_SETTEXT, (WPARAM)0, (LPARAM)szStatusText);
Modified: trunk/reactos/base/applications/setup16/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/setup16/…
==============================================================================
--- trunk/reactos/base/applications/setup16/main.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/setup16/main.c [iso-8859-1] Fri Mar 15 21:59:57 2013
@@ -143,7 +143,7 @@
else
{
WCHAR szMsg[MAX_PATH];
- wsprintf(szMsg, L"Failed to load the installer. Error %d",
GetLastError());
+ wsprintf(szMsg, L"Failed to load the installer. Error %lu",
GetLastError());
MessageBoxW(0, szMsg, L"Error", MB_OK | MB_ICONERROR);
DeleteDirectory(szTempPath);
return 1;
Modified: trunk/reactos/base/applications/shutdown/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
==============================================================================
--- trunk/reactos/base/applications/shutdown/misc.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/shutdown/misc.c [iso-8859-1] Fri Mar 15 21:59:57 2013
@@ -179,7 +179,7 @@
/* Prints out the error message to the user */
fprintf(stderr, resMsg);
- fwprintf(stderr, L"Error code: %d\n", dwError);
+ fwprintf(stderr, L"Error code: %lu\n", dwError);
LocalFree(lpMsgBuf);
LocalFree(resMsg);