| 385 | } |
| 386 | |
| 387 | static void |
| 388 | textdump_dump_panic(struct dumperinfo *di) |
| 389 | { |
| 390 | u_int len; |
| 391 | |
| 392 | /* |
| 393 | * Write out tar header -- we store up to one block of panic message. |
| 394 | */ |
| 395 | len = min(strlen(panicstr), TEXTDUMP_BLOCKSIZE); |
| 396 | textdump_mkustar(textdump_block_buffer, TAR_PANIC_FILENAME, len); |
| 397 | (void)textdump_writenextblock(di, textdump_block_buffer); |
| 398 | |
| 399 | /* |
| 400 | * Zero-pad the panic string and write out block. |
| 401 | */ |
| 402 | bzero(textdump_block_buffer, sizeof(textdump_block_buffer)); |
| 403 | bcopy(panicstr, textdump_block_buffer, len); |
| 404 | (void)textdump_writenextblock(di, textdump_block_buffer); |
| 405 | } |
| 406 | |
| 407 | static void |
| 408 | textdump_dump_version(struct dumperinfo *di) |
no test coverage detected