mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +00:00
Make io_file_t::print more useful
This commit is contained in:
parent
713ceddf0b
commit
feb40f0cd6
1 changed files with 6 additions and 3 deletions
|
@ -46,13 +46,16 @@ void io_close_t::print() const { std::fwprintf(stderr, L"close %d\n", fd); }
|
|||
|
||||
void io_fd_t::print() const { std::fwprintf(stderr, L"FD map %d -> %d\n", source_fd, fd); }
|
||||
|
||||
void io_file_t::print() const { std::fwprintf(stderr, L"file (%d)\n", file_fd_.fd()); }
|
||||
void io_file_t::print() const { std::fwprintf(stderr, L"file %d -> %d\n", file_fd_.fd(), fd); }
|
||||
|
||||
void io_pipe_t::print() const {
|
||||
std::fwprintf(stderr, L"pipe {%d} (input: %s)\n", source_fd, is_input_ ? "yes" : "no");
|
||||
std::fwprintf(stderr, L"pipe {%d} (input: %s) -> %d\n", source_fd, is_input_ ? "yes" : "no",
|
||||
fd);
|
||||
}
|
||||
|
||||
void io_bufferfill_t::print() const { std::fwprintf(stderr, L"bufferfill {%d}\n", write_fd_.fd()); }
|
||||
void io_bufferfill_t::print() const {
|
||||
std::fwprintf(stderr, L"bufferfill %d -> %d\n", write_fd_.fd(), fd);
|
||||
}
|
||||
|
||||
void io_buffer_t::append_from_stream(const output_stream_t &stream) {
|
||||
const separated_buffer_t<wcstring> &input = stream.buffer();
|
||||
|
|
Loading…
Reference in a new issue