Lines Matching +defs:val +defs:buf

81 read_raw(unsigned char **pp, unsigned char *buf, int len)
84 *buf = **pp;
85 buf++;
141 char buf[256];
153 (void)md_snprintf(buf, sizeof(buf), "System %s failed: %s\n",
155 HPROF_ERROR(JNI_TRUE, buf);
160 system_write(int fd, void *buf, int len)
165 res = md_write(fd, buf, len);
188 jvalue val;
191 val = empty_val;
196 val.i = read_id(pp);
200 val.b = read_u1(pp);
204 val.s = read_u2(pp);
208 val.i = read_u4(pp);
212 val.j = read_u8(pp);
218 return val;
223 check_raw(void *buf, int len)
236 system_write(gdata->check_fd, buf, len);
240 (void)memcpy(gdata->check_buffer + gdata->check_buffer_index, buf, len);
248 char buf[1024];
256 (void)md_vsnprintf(buf, sizeof(buf), fmt, args);
257 buf[sizeof(buf)-1] = 0;
258 check_raw(buf, (int)strlen(buf));
264 check_printf_val(HprofType ty, jvalue val, int long_form)
271 check_printf("0x%08x", val.i);
274 check_printf("0x%08x", val.i);
277 check_printf("0x%02x", val.b);
281 if ( val.s < 0 || val.s > 0x7f || !isprint(val.s) ) {
282 check_printf("0x%04x", val.s);
284 check_printf("0x%04x(%c)", val.s, val.s);
287 if ( val.s < 0 || val.s > 0x7f || !isprint(val.s) ) {
288 check_printf("\\u%04x", val.s);
290 check_printf("%c", val.s);
295 low = jlong_low(val.j);
296 check_printf("0x%08x(%f)", low, (double)val.f);
299 high = jlong_high(val.j);
300 low = jlong_low(val.j);
301 check_printf("0x%08x%08x(%f)", high, low, val.d);
304 check_printf("0x%02x", val.b);
307 check_printf("0x%04x", val.s);
310 check_printf("0x%08x", val.i);
313 high = jlong_high(val.j);
314 low = jlong_low(val.j);
645 jvalue val;
649 val = read_val(&p, ty);
650 check_printf(" constant_pool %d: cpi=%d, ty=%d, val=",
652 check_printf_val(ty, val, 1);
661 jvalue val;
665 val = read_val(&p, ty);
668 check_printf(", ty=%d, val=", ty);
669 check_printf_val(ty, val, 1);
715 jvalue val;
721 val = read_val(&p, ty);
724 check_printf(", ty=%d, val=", ty);
725 check_printf_val(ty, val, 1);
791 check_printf(" val=%s", quote);
793 jvalue val;
798 val = read_val(&p, ty);
799 check_printf_val(ty, val, long_form);