functions.c: logmsg(): fix length of marker lines in LOG_MARK

This commit is contained in:
Silvan Calarco 2021-04-18 13:48:47 +02:00
parent 57c93b2591
commit c7eb144bb1

View File

@ -463,9 +463,11 @@ void logmsg(int level, const char *msg, ...) {
switch (level) {
case LOG_MARK:
fprintf(stderr,"Info: ******************************\n");
fprintf(stderr,"Info: %s\n",(char*)&newmsg);
fprintf(stderr,"Info: ******************************\n");
fprintf(stderr,"Info: ");
for (int j=0; j<strlen(newmsg);j++) fprintf(stderr, "*");
fprintf(stderr,"\nInfo: %s\nInfo: ",(char*)&newmsg);
for (int j=0; j<strlen(newmsg);j++) fprintf(stderr, "*");
fprintf(stderr,"\n");
break;
case LOG_WARNING:
fprintf(stderr,"Warning: %s\n",(char*)&newmsg);