diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-01-13 16:41:40 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-01-13 16:41:40 +0100 |
| commit | 54e75dc902cbe7878e35c2bc8f683745deb97db5 (patch) | |
| tree | 2185fb8174d9ce2242efd7d388bd8e4ef568db18 /src | |
| parent | 6a5c326c39e9b2353ca9439ba1e9dab2815e6000 (diff) | |
Improve debug output of Fl_String
- add newline (\n) before string output
- remove quotes (')
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_String.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_String.cxx b/src/Fl_String.cxx index 59f7ace64..7c82b0ec1 100644 --- a/src/Fl_String.cxx +++ b/src/Fl_String.cxx @@ -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>"); } } |
