diff options
author | marko@hundin.mysql.fi <> | 2004-04-06 16:14:43 +0300 |
---|---|---|
committer | marko@hundin.mysql.fi <> | 2004-04-06 16:14:43 +0300 |
commit | 6af38c65bebe79e36aaa57c0b4f9a78f047bccad (patch) | |
tree | f7bc427aa7ce4a54802d6e8931ca1dfe64c7bfa8 /innobase/include/ut0ut.h | |
parent | 4f9b59f71db750cc2d14b0ed3a910b23996a9032 (diff) | |
download | mariadb-git-6af38c65bebe79e36aaa57c0b4f9a78f047bccad.tar.gz |
InnoDB: send diagnostic output to stderr or files
instead of stdout or fixed-size memory buffers
Diffstat (limited to 'innobase/include/ut0ut.h')
-rw-r--r-- | innobase/include/ut0ut.h | 42 |
1 files changed, 30 insertions, 12 deletions
diff --git a/innobase/include/ut0ut.h b/innobase/include/ut0ut.h index 637c9a68174..b349fe26015 100644 --- a/innobase/include/ut0ut.h +++ b/innobase/include/ut0ut.h @@ -169,7 +169,7 @@ ut_print_timestamp( /*===============*/ FILE* file); /* in: file where to print */ /************************************************************** -Sprintfs a timestamp to a buffer. */ +Sprintfs a timestamp to a buffer, 13..14 chars plus terminating NUL. */ void ut_sprintf_timestamp( @@ -199,19 +199,37 @@ Prints the contents of a memory buffer in hex and ascii. */ void ut_print_buf( /*=========*/ - byte* buf, /* in: memory buffer */ - ulint len); /* in: length of the buffer */ -/***************************************************************** -Prints the contents of a memory buffer in hex and ascii. */ + FILE* file, /* in: file where to print */ + const byte* buf, /* in: memory buffer */ + ulint len); /* in: length of the buffer */ -ulint -ut_sprintf_buf( -/*===========*/ - /* out: printed length in bytes */ - char* str, /* in: buffer to print to */ - byte* buf, /* in: memory buffer */ - ulint len); /* in: length of the buffer */ +/************************************************************************** +Outputs a NUL-terminated string, quoted as an SQL identifier. */ + +void +ut_print_name( +/*==========*/ + FILE* f, /* in: output stream */ + const char* name); /* in: name to print */ + +/************************************************************************** +Outputs a fixed-length string, quoted as an SQL identifier. */ +void +ut_print_namel( +/*==========*/ + FILE* f, /* in: output stream */ + const char* name, /* in: name to print */ + ulint namelen);/* in: length of name */ + +/************************************************************************** +Catenate files. */ + +void +ut_copy_file( +/*=========*/ + FILE* dest, /* in: output file */ + FILE* src); /* in: input file to be appended to output */ #ifndef UNIV_NONINL #include "ut0ut.ic" |