Skip to content

Commit

Permalink
drivers/phoenixcontact_modbus.c: fix "Uknown" typo [#2716]
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Dec 12, 2024
1 parent 78cbd65 commit ffd4219
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions drivers/phoenixcontact_modbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void upsdrv_initinfo(void)
* memory corruptions and buggy inputs below...
*/
default:
fatalx(EXIT_FAILURE, "Uknown UPS part number: %" PRIu64, PartNumber);
fatalx(EXIT_FAILURE, "Unknown UPS part number: %" PRIu64, PartNumber);
#ifdef __clang__
# pragma clang diagnostic pop
#endif
Expand Down Expand Up @@ -215,7 +215,7 @@ void upsdrv_updateinfo(void)
mrir(modbus_ctx, 29697, 3, tab_reg); /* LB is actually called "shutdown event" on this ups */
break;
case NONE:
fatalx(EXIT_FAILURE, "Uknown UPS model.");
fatalx(EXIT_FAILURE, "Unknown UPS model.");
#if (defined HAVE_PRAGMA_GCC_DIAGNOSTIC_PUSH_POP) && ( (defined HAVE_PRAGMA_GCC_DIAGNOSTIC_IGNORED_COVERED_SWITCH_DEFAULT) || (defined HAVE_PRAGMA_GCC_DIAGNOSTIC_IGNORED_UNREACHABLE_CODE) )
# pragma GCC diagnostic push
#endif
Expand All @@ -236,7 +236,7 @@ void upsdrv_updateinfo(void)
* memory corruptions and buggy inputs below...
*/
default:
fatalx(EXIT_FAILURE, "Uknown UPS model.");
fatalx(EXIT_FAILURE, "Unknown UPS model.");
#ifdef __clang__
# pragma clang diagnostic pop
#endif
Expand Down Expand Up @@ -269,7 +269,7 @@ void upsdrv_updateinfo(void)
mrir(modbus_ctx, 29745, 1, tab_reg);
break;
case NONE:
fatalx(EXIT_FAILURE, "Uknown UPS model.");
fatalx(EXIT_FAILURE, "Unknown UPS model.");
#if (defined HAVE_PRAGMA_GCC_DIAGNOSTIC_PUSH_POP) && ( (defined HAVE_PRAGMA_GCC_DIAGNOSTIC_IGNORED_COVERED_SWITCH_DEFAULT) || (defined HAVE_PRAGMA_GCC_DIAGNOSTIC_IGNORED_UNREACHABLE_CODE) )
# pragma GCC diagnostic push
#endif
Expand All @@ -290,7 +290,7 @@ void upsdrv_updateinfo(void)
* memory corruptions and buggy inputs below...
*/
default:
fatalx(EXIT_FAILURE, "Uknown UPS model.");
fatalx(EXIT_FAILURE, "Unknown UPS model.");
#ifdef __clang__
# pragma clang diagnostic pop
#endif
Expand All @@ -310,7 +310,7 @@ void upsdrv_updateinfo(void)
mrir(modbus_ctx, 29749, 5, tab_reg);
break;
case NONE:
fatalx(EXIT_FAILURE, "Uknown UPS model.");
fatalx(EXIT_FAILURE, "Unknown UPS model.");
#if (defined HAVE_PRAGMA_GCC_DIAGNOSTIC_PUSH_POP) && ( (defined HAVE_PRAGMA_GCC_DIAGNOSTIC_IGNORED_COVERED_SWITCH_DEFAULT) || (defined HAVE_PRAGMA_GCC_DIAGNOSTIC_IGNORED_UNREACHABLE_CODE) )
# pragma GCC diagnostic push
#endif
Expand All @@ -331,7 +331,7 @@ void upsdrv_updateinfo(void)
* memory corruptions and buggy inputs below...
*/
default:
fatalx(EXIT_FAILURE, "Uknown UPS model.");
fatalx(EXIT_FAILURE, "Unknown UPS model.");
#ifdef __clang__
# pragma clang diagnostic pop
#endif
Expand Down Expand Up @@ -366,7 +366,7 @@ void upsdrv_updateinfo(void)
mrir(modbus_ctx, 29792, 10, tab_reg);
break;
case NONE:
fatalx(EXIT_FAILURE, "Uknown UPS model.");
fatalx(EXIT_FAILURE, "Unknown UPS model.");
#if (defined HAVE_PRAGMA_GCC_DIAGNOSTIC_PUSH_POP) && ( (defined HAVE_PRAGMA_GCC_DIAGNOSTIC_IGNORED_COVERED_SWITCH_DEFAULT) || (defined HAVE_PRAGMA_GCC_DIAGNOSTIC_IGNORED_UNREACHABLE_CODE) )
# pragma GCC diagnostic push
#endif
Expand All @@ -387,7 +387,7 @@ void upsdrv_updateinfo(void)
* memory corruptions and buggy inputs below...
*/
default:
fatalx(EXIT_FAILURE, "Uknown UPS model.");
fatalx(EXIT_FAILURE, "Unknown UPS model.");
#ifdef __clang__
# pragma clang diagnostic pop
#endif
Expand Down Expand Up @@ -475,7 +475,7 @@ void upsdrv_updateinfo(void)
alarm_set("Low Battery (Service)");
break;
case NONE:
fatalx(EXIT_FAILURE, "Uknown UPS model.");
fatalx(EXIT_FAILURE, "Unknown UPS model.");
#if (defined HAVE_PRAGMA_GCC_DIAGNOSTIC_PUSH_POP) && ( (defined HAVE_PRAGMA_GCC_DIAGNOSTIC_IGNORED_COVERED_SWITCH_DEFAULT) || (defined HAVE_PRAGMA_GCC_DIAGNOSTIC_IGNORED_UNREACHABLE_CODE) )
# pragma GCC diagnostic push
#endif
Expand All @@ -496,7 +496,7 @@ void upsdrv_updateinfo(void)
* memory corruptions and buggy inputs below...
*/
default:
fatalx(EXIT_FAILURE, "Uknown UPS model.");
fatalx(EXIT_FAILURE, "Unknown UPS model.");
#ifdef __clang__
# pragma clang diagnostic pop
#endif
Expand Down

0 comments on commit ffd4219

Please sign in to comment.