You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.2 KiB

26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
  1. /* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation; version 2 of the License.
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License
  10. along with this program; if not, write to the Free Software
  11. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
  12. #include "mysys_priv.h"
  13. void my_message_stderr(uint error __attribute__((unused)),
  14. const char *str, myf MyFlags)
  15. {
  16. DBUG_ENTER("my_message_stderr");
  17. DBUG_PRINT("enter",("message: %s",str));
  18. (void) fflush(stdout);
  19. if (MyFlags & ME_BELL)
  20. (void) fputc('\007', stderr);
  21. if (my_progname)
  22. {
  23. (void)fputs(my_progname,stderr); (void)fputs(": ",stderr);
  24. }
  25. (void)fputs(str,stderr);
  26. (void)fputc('\n',stderr);
  27. (void)fflush(stderr);
  28. DBUG_VOID_RETURN;
  29. }