diff options
author | Chris Lumens <clumens@redhat.com> | 2005-08-13 00:52:40 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2005-08-13 00:52:40 +0000 |
commit | 26091625f3cf24dc0ba5bf655a83a868c5b20e89 (patch) | |
tree | a492c91713966c8050f0cee47cad79e87d15dbea /loader2/kbd.c | |
parent | a96d25d6bdae5703ff8d9ee5993d9942f2a6a48d (diff) | |
download | anaconda-26091625f3cf24dc0ba5bf655a83a868c5b20e89.tar.gz anaconda-26091625f3cf24dc0ba5bf655a83a868c5b20e89.tar.xz anaconda-26091625f3cf24dc0ba5bf655a83a868c5b20e89.zip |
Support logging levels in the loader just like in the python parts of the
installer. Also make the output look the same. This isn't going to be
nearly as sophisticated as the python logging module, but it will at least
behave similarly with command line options.
Diffstat (limited to 'loader2/kbd.c')
-rw-r--r-- | loader2/kbd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/loader2/kbd.c b/loader2/kbd.c index 41a006e77..bbf0f2cfd 100644 --- a/loader2/kbd.c +++ b/loader2/kbd.c @@ -97,7 +97,7 @@ int chooseKeyboard(char ** keymap, char ** kbdtypep, int flags) { return LOADER_ERROR; } - logMessage("%d keymaps are available", hdr.numEntries); + logMessage(INFO, "%d keymaps are available", hdr.numEntries); i = hdr.numEntries * sizeof(*infoTable); infoTable = alloca(i); @@ -135,8 +135,8 @@ int chooseKeyboard(char ** keymap, char ** kbdtypep, int flags) { for (i = 0; i < num; i++) { if (gunzip_read(f, buf, infoTable[i].size) != infoTable[i].size) { - logMessage("error reading %d bytes from file: %s", - infoTable[i].size, strerror(errno)); + logMessage(ERROR, "error reading %d bytes from file: %s", + infoTable[i].size, strerror(errno)); gunzip_close(f); rc = LOADER_ERROR; } @@ -165,7 +165,7 @@ int chooseKeyboard(char ** keymap, char ** kbdtypep, int flags) { void setKickstartKeyboard(struct loaderData_s * loaderData, int argc, char ** argv, int * flagsPtr) { if (argc < 2) { - logMessage("no argument passed to keyboard kickstart command"); + logMessage(ERROR, "no argument passed to keyboard kickstart command"); return; } |