Commit ee3fd196 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk Committed by Adam Wujek

wrsw_hal: cleanup in log messages - levels and content

parent 2d7a0a52
......@@ -229,7 +229,7 @@ int hal_check_running()
struct wrs_shm_head *hal_head;
hal_head = wrs_shm_get(wrs_shm_hal, "", WRS_SHM_READ);
if (!hal_head) {
pr_info("Unable to open shm for HAL! Unable to check if there "
pr_error("Unable to open shm for HAL! Unable to check if there "
"is another HAL instance running. Error: %s\n",
strerror(errno));
exit(-1);
......
......@@ -50,7 +50,7 @@ static void call_cleanup_cbs(void)
{
int i;
pr_info("Cleaning up...\n");
pr_debug("Cleaning up...\n");
for (i = 0; i < MAX_CLEANUP_CALLBACKS; i++)
if (cleanup_cb[i])
cleanup_cb[i] ();
......@@ -82,7 +82,7 @@ static int hal_init(void)
//trace_log_stderr();
int line;
pr_info("initializing...\n");
pr_debug("initializing...\n");
memset(cleanup_cb, 0, sizeof(cleanup_cb));
......@@ -220,8 +220,7 @@ int main(int argc, char *argv[])
wrs_msg_init(argc, argv);
/* Print HAL's version */
wrs_msg(LOG_ALERT, "wrsw_hal. Commit %s, built on " __DATE__ "\n",
__GIT_VER__);
pr_info("wrsw_hal. Commit %s, built on " __DATE__ "\n", __GIT_VER__);
/* Prevent from running HAL twice - it will likely freeze the system */
if (hal_check_running()) {
......
......@@ -161,7 +161,7 @@ static int hal_port_init(int index)
pr_error("port index %i (%s): invalid role "
"\"%s\" specified\n", index, name, s);
pr_info("Port %s: mode %i\n", p->name, val);
pr_debug("Port %s: mode %i\n", p->name, val);
}
/* Get fiber type */
......@@ -553,7 +553,7 @@ static void hal_port_poll_sfp(void)
if (ports[i].in_use
&& (mask ^ old_mask) & (1 << hw_index)) {
int insert = mask & (1 << hw_index);
pr_info("Detected SFP %s "
pr_info("SFP Info: Detected SFP %s "
"on port %s.\n",
insert ? "insertion" : "removal",
ports[i].name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment