8269636: Change outputStream's print_raw() and print_raw_cr() second parameter to size_t type
Reviewed-by: iklam, minqi
This commit is contained in:
parent
67dc1c5bf3
commit
58f1ada271
@ -684,7 +684,7 @@ static int printf_to_env(void* env_pv, const char* format, ...) {
|
||||
raw = format+1;
|
||||
}
|
||||
if (raw != NULL) {
|
||||
st->print_raw(raw, (int) flen);
|
||||
st->print_raw(raw, flen);
|
||||
return (int) flen;
|
||||
}
|
||||
va_list ap;
|
||||
|
@ -1116,7 +1116,7 @@ void Arguments::print_on(outputStream* st) {
|
||||
if (len == 0) {
|
||||
st->print_raw_cr("<not set>");
|
||||
} else {
|
||||
st->print_raw_cr(path, (int)len);
|
||||
st->print_raw_cr(path, len);
|
||||
}
|
||||
}
|
||||
st->print_cr("Launcher Type: %s", _sun_java_launcher);
|
||||
|
@ -97,9 +97,9 @@ class outputStream : public ResourceObj {
|
||||
void vprint(const char *format, va_list argptr) ATTRIBUTE_PRINTF(2, 0);
|
||||
void vprint_cr(const char* format, va_list argptr) ATTRIBUTE_PRINTF(2, 0);
|
||||
void print_raw(const char* str) { write(str, strlen(str)); }
|
||||
void print_raw(const char* str, int len) { write(str, len); }
|
||||
void print_raw(const char* str, size_t len) { write(str, len); }
|
||||
void print_raw_cr(const char* str) { write(str, strlen(str)); cr(); }
|
||||
void print_raw_cr(const char* str, int len){ write(str, len); cr(); }
|
||||
void print_raw_cr(const char* str, size_t len){ write(str, len); cr(); }
|
||||
void print_data(void* data, size_t len, bool with_ascii);
|
||||
void put(char ch);
|
||||
void sp(int count = 1);
|
||||
|
Loading…
Reference in New Issue
Block a user