Lines Matching refs:snprintf

56             case 0:     snprintf(str, sizeof(str), "%s", "error: invalid register size of zero."); break;
57 case 1: snprintf(str, sizeof(str), "0x%2.2x", value.uint8); break;
58 case 2: snprintf(str, sizeof(str), "0x%4.4x", value.uint16); break;
59 case 4: snprintf(str, sizeof(str), "0x%8.8x", value.uint32); break;
60 case 8: snprintf(str, sizeof(str), "0x%16.16llx", value.uint64); break;
61 case 16: snprintf(str, sizeof(str), "0x%16.16llx%16.16llx", value.v_uint64[0], value.v_uint64[1]); break;
68 pos += snprintf(pos, end - pos, "%2.2x", (uint32_t)value.v_uint8[i]);
80 case 1: snprintf(str, sizeof(str), "%u", value.uint8); break;
81 case 2: snprintf(str, sizeof(str), "%u", value.uint16); break;
82 case 4: snprintf(str, sizeof(str), "%u", value.uint32); break;
83 case 8: snprintf(str, sizeof(str), "%llu", value.uint64); break;
84 default: snprintf(str, sizeof(str), "error: unsupported uint byte size %d.", info.size); break;
91 case 1: snprintf(str, sizeof(str), "%d", value.sint8); break;
92 case 2: snprintf(str, sizeof(str), "%d", value.sint16); break;
93 case 4: snprintf(str, sizeof(str), "%d", value.sint32); break;
94 case 8: snprintf(str, sizeof(str), "%lld", value.sint64); break;
95 default: snprintf(str, sizeof(str), "error: unsupported sint byte size %d.", info.size); break;
102 case 4: snprintf(str, sizeof(str), "%f", value.float32); break;
103 case 8: snprintf(str, sizeof(str), "%g", value.float64); break;
104 default: snprintf(str, sizeof(str), "error: unsupported float byte size %d.", info.size); break;
114 snprintf(str, sizeof(str), "%s", "sint8 { ");
120 pos += snprintf(pos, end - pos, "%d", (int32_t)value.v_sint8[i]);
128 snprintf(str, sizeof(str), "%s", "uint8 { ");
134 pos += snprintf(pos, end - pos, "%u", (uint32_t)value.v_uint8[i]);
139 snprintf(str, sizeof(str), "%s", "sint16 { ");
145 pos += snprintf(pos, end - pos, "%d", (int32_t)value.v_sint16[i]);
150 snprintf(str, sizeof(str), "%s", "uint16 { ");
156 pos += snprintf(pos, end - pos, "%u", (uint32_t)value.v_uint16[i]);
161 snprintf(str, sizeof(str), "%s", "sint32 { ");
167 pos += snprintf(pos, end - pos, "%d", (int32_t)value.v_sint32[i]);
172 snprintf(str, sizeof(str), "%s", "uint32 { ");
178 pos += snprintf(pos, end - pos, "%u", (uint32_t)value.v_uint32[i]);
183 snprintf(str, sizeof(str), "%s", "float32 { ");
189 pos += snprintf(pos, end - pos, "%f", value.v_float32[i]);
194 snprintf(str, sizeof(str), "%s", "uint128 { ");
200 pos += snprintf(pos, end - pos, "0x%16.16llx%16.16llx", value.v_uint64[i], value.v_uint64[i+1]);
208 snprintf(str, sizeof(str), "error: unsupported vector size %d.", info.size);
213 snprintf(str, sizeof(str), "error: unsupported register type %d.", info.type);