X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fshell%2Flogger.c;h=67315c9eb4a8fb8900786e6a10aca7b486a3ff39;hb=e42cd882d7970eb0b01bc9b058e0446996212cb4;hp=52b901a88d31ba324159eebf7752fdef826e11ef;hpb=2a64fd8ad0419220eccfcde539ed1791138ef942;p=libucw.git diff --git a/lib/shell/logger.c b/lib/shell/logger.c index 52b901a8..67315c9e 100644 --- a/lib/shell/logger.c +++ b/lib/shell/logger.c @@ -1,7 +1,10 @@ /* - * Sherlock Utilities -- A Simple Logger for use in shell scripts + * UCW Library Utilities -- A Simple Logger for use in shell scripts * * (c) 2001 Martin Mares + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ #include "lib/lib.h" @@ -26,14 +29,14 @@ main(int argc, char **argv) else log_init(argv[1]); if (argc > 3) - log(argv[2][0], argv[3]); + msg(argv[2][0], argv[3]); else while (fgets(buf, sizeof(buf), stdin)) { c = strchr(buf, '\n'); if (c) *c = 0; - log(argv[2][0], buf); + msg(argv[2][0], buf); } return 0; }