| 364 | } |
| 365 | |
| 366 | static void |
| 367 | sprintfOffsetVector(Kstring *kstr, unsigned int base, unsigned int len) |
| 368 | { |
| 369 | if (len == 1) { |
| 370 | ksprintf(kstr, "%u", base); |
| 371 | } |
| 372 | else { |
| 373 | unsigned int i; |
| 374 | |
| 375 | ksprintf(kstr, "(uint%u)(%u", len, base); |
| 376 | for (i = 1; i < len; i++) { |
| 377 | kstrcatf(kstr, ", %u", base + i); |
| 378 | } |
| 379 | kstrcatf(kstr, "%c", ')'); |
| 380 | } |
| 381 | } |
| 382 | |
| 383 | static void |
| 384 | sprintfLinearOffset( |
no test coverage detected