Message ID | 20151204164022.ae404aa5a78dd87d979ed60f@linux-foundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- a/lib/ubsan.c~ubsan-run-time-undefined-behavior-sanity-checker-fix +++ a/lib/ubsan.c @@ -118,11 +118,11 @@ static u_max get_unsigned_val(struct typ static void val_to_string(char *str, size_t size, struct type_descriptor *type, unsigned long value) { - u_max val = get_unsigned_val(type, value); - if (type_is_int(type)) { if (type_bit_width(type) == 128) { #ifdef CONFIG_ARCH_SUPPORTS_INT128 + u_max val = get_unsigned_val(type, value); + scnprintf(str, size, "0x%08x%08x%08x%08x", (u32)(val >> 96), (u32)(val >> 64),