Improve debug output of Fl_String

- add newline (\n) before string output
- remove quotes (')
This commit is contained in:
Albrecht Schlosser 2023-01-13 16:41:40 +01:00
parent 6a5c326c39
commit 54e75dc902

View File

@ -1,7 +1,7 @@
//
// Basic Fl_String class for the Fast Light Tool Kit (FLTK).
//
// Copyright 2021-2022 by Bill Spitzak and others.
// Copyright 2021-2023 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@ -154,7 +154,7 @@ void Fl_String::release() {
*/
void Fl_String::debug(const char *info) const {
if (info) {
printf("Fl_String '%-20s': %p, value = %p (%d/%d): '%s'\n",
printf("Fl_String '%-20s': %p, value = %p (%d/%d):\n%s\n",
info, this, value_, size_, capacity_, value_ ? value_ : "<NULL>");
}
}