]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_common_log.c
fix typos using codespell utility
[dpdk.git] / lib / librte_eal / common / eal_common_log.c
index 5f38ca5d9a8dee684eff8b8bb05f4bbd172b5195..41ea92472b3319ebd93b2c7f5bc6bf217aae311c 100644 (file)
@@ -173,13 +173,13 @@ rte_log_set_level_regexp(const char *pattern, uint32_t level)
        return 0;
 }
 
-/* get the current loglevel for the message beeing processed */
+/* get the current loglevel for the message being processed */
 int rte_log_cur_msg_loglevel(void)
 {
        return RTE_PER_LCORE(log_cur_msg).loglevel;
 }
 
-/* get the current logtype for the message beeing processed */
+/* get the current logtype for the message being processed */
 int rte_log_cur_msg_logtype(void)
 {
        return RTE_PER_LCORE(log_cur_msg).logtype;
@@ -309,6 +309,7 @@ static const char *
 loglevel_to_string(uint32_t level)
 {
        switch (level) {
+       case 0: return "disabled";
        case RTE_LOG_EMERG: return "emerg";
        case RTE_LOG_ALERT: return "alert";
        case RTE_LOG_CRIT: return "critical";