X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fhelper%2Flog.c;h=0bea1c50c4ac21fcfd53067b9225158c8bef78a3;hb=5479ed42ba30dcc692c696cf1d215278e03ce0be;hp=ff84dbf00514f5b87913273f1a603e8c40e55abc;hpb=8cf671ea7be52096a629f08bd59492275bd3dcfb;p=openocd.git diff --git a/src/helper/log.c b/src/helper/log.c index ff84dbf005..0bea1c50c4 100644 --- a/src/helper/log.c +++ b/src/helper/log.c @@ -21,16 +21,16 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include "config.h" #endif +#include "log.h" +#include "command.h" #include "time_support.h" -/* @todo the inclusion of server.h here is a layering violation */ -#include #include @@ -52,7 +52,7 @@ static long long current_time; static long long start; -static char *log_strings[5] = { +static const char * const log_strings[5] = { "User : ", "Error: ", "Warn : ", /* want a space after each colon, all same width, colons aligned */