X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fhelper%2Flog.c;h=0bea1c50c4ac21fcfd53067b9225158c8bef78a3;hb=060e9c3b36a8cf109011e15e445745bc14396b35;hp=ff84dbf00514f5b87913273f1a603e8c40e55abc;hpb=8cf671ea7be52096a629f08bd59492275bd3dcfb;p=fw%2Fopenocd diff --git a/src/helper/log.c b/src/helper/log.c index ff84dbf00..0bea1c50c 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 */