com php-src: fix printf format: main/main.c
| From: | Anatol Belski | Date: | Fri, 19 Sep 2014 08:04:12 +0000 |
| Subject: | com php-src: fix printf format: main/main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81760@lists.php.net to get a copy of this message | ||
Commit: c80d9ccf7a6e0649adee5498df6ddba8d0891e0b
Author: Anatol Belski <ab@php.net> Fri, 19 Sep 2014 10:04:12 +0200
Parents: 79bb2a14743606e9593c88fce9a7a1e9791120c2
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c80d9ccf7a6e0649adee5498df6ddba8d0891e0b
Log:
fix printf format
Changed paths:
M main/main.c
Diff:
diff --git a/main/main.c b/main/main.c
index fde2902..6e69724 100644
--- a/main/main.c
+++ b/main/main.c
@@ -1149,10 +1149,10 @@ static void php_error_cb(int type, const char *error_filename, const uint
error_
PG(display_errors) == PHP_DISPLAY_ERRORS_STDERR
) {
#ifdef PHP_WIN32
- fprintf(stderr, "%s: %s in %s on line %d\n", error_type_str, buffer,
error_filename, error_lineno);
+ fprintf(stderr, "%s: %s in %s on line %u\n", error_type_str, buffer,
error_filename, error_lineno);
fflush(stderr);
#else
- fprintf(stderr, "%s: %s in %s on line %d\n", error_type_str, buffer,
error_filename, error_lineno);
+ fprintf(stderr, "%s: %s in %s on line %u\n", error_type_str, buffer,
error_filename, error_lineno);
#endif
} else {
php_printf("%s\n%s: %s in %s on line %d\n%s", STR_PRINT(prepend_string),
error_type_str, buffer, error_filename, error_lineno, STR_PRINT(append_string));
@@ -2023,7 +2023,7 @@ void dummy_invalid_parameter_handler(
called = 1;
if (function) {
if (file) {
- len = _snprintf(buf, sizeof(buf)-1, "Invalid parameter detected in CRT function
'%ws' (%ws:%d)", function, file, line);
+ len = _snprintf(buf, sizeof(buf)-1, "Invalid parameter detected in CRT function
'%ws' (%ws:%u)", function, file, line);
} else {
len = _snprintf(buf, sizeof(buf)-1, "Invalid parameter detected in CRT function
'%ws'", function);
}