fix some typos found by Lintian
authorAndreas Beckmann <anbe@debian.org>
Sat, 27 Jan 2024 00:28:10 +0000 (01:28 +0100)
committerAndreas Beckmann <anbe@debian.org>
Sat, 27 Jan 2024 00:28:10 +0000 (01:28 +0100)
Applied-Upstream: commit:298502848f2d2822ed914a411996be546c5901b9

Gbp-Pq: Name fix-typos.patch

src/bbconfig.c
src/bbrun.c
src/module.c
src/optirun.c
src/switch/sw_bbswitch.c

index 1dff5e020fcbdc61a0143e69fc16ca6f63c50c34..9d26df3b4eb48a4e997bef0320bd5e37ae39ee81 100644 (file)
@@ -201,11 +201,11 @@ void print_usage(int exit_val) {
   }
   /* common options */
   fputs("\
-  -q, --quiet, --silent   supresses all logging messages\n\
+  -q, --quiet, --silent   suppresses all logging messages\n\
   -v, --verbose           increase the verbosity level of log messages. It\n\
                             can be specified up to two times (or five if\n\
                             --quiet is used)\n\
-      --debug             show all logging messsages by setting the verbosity\n\
+      --debug             show all logging messages by setting the verbosity\n\
                             level to the maximum\n\
   -C, --config FILE       retrieve settings for Bumblebee from FILE\n", out);
   if (is_optirun) {
index 529ee725d066c11b2e4d1b57a197fa65fb6167cd..f6b134ef4f4d334bcb7465e68e343bdf85660e4c 100644 (file)
@@ -170,7 +170,7 @@ int bb_run_fork(char **argv, int detached) {
         exitcode = 128 + WTERMSIG(status);
       }
     } else {
-      bb_log(LOG_ERR, "waitpid(%i) faild with %s\n", pid, strerror(errno));
+      bb_log(LOG_ERR, "waitpid(%i) failed with %s\n", pid, strerror(errno));
     }
     pidlist_remove(pid);
   } else {
index f6d71445bfdc957a25be0dcd367a651abc7bca79..bb32e15da6db578d571d104b90bcb29dee922846 100644 (file)
@@ -64,7 +64,7 @@ int module_is_loaded(char *driver) {
  *
  * @param module_name The filename of the module to be loaded
  * @param driver The name of the driver to be loaded
- * @return 1 if the driver is succesfully loaded, 0 otherwise
+ * @return 1 if the driver is successfully loaded, 0 otherwise
  */
 int module_load(char *module_name, char *driver) {
   if (module_is_loaded(driver) == 0) {
@@ -89,7 +89,7 @@ int module_load(char *module_name, char *driver) {
  * giving up
  *
  * @param driver The name of the driver (not a filename)
- * @return 1 if the driver is succesfully unloaded, 0 otherwise
+ * @return 1 if the driver is successfully unloaded, 0 otherwise
  */
 int module_unload(char *driver) {
   if (module_is_loaded(driver) == 1) {
index 65c83d4d5bf290f73c3864c0b0dc2183753561a1..bcc6c13b226e19535c2d82499385e61aae4b5b24 100644 (file)
@@ -62,7 +62,7 @@ static void handle_signal(int sig) {
 
 /**
  * Prints the status of the Bumblebee server if available
- * @return EXIT_SUCCESS if the status is succesfully retrieved,
+ * @return EXIT_SUCCESS if the status is successfully retrieved,
  * EXIT_FAILURE otherwise
  */
 static int report_daemon_status(void) {
index e2d712d3fbd114668c9e66cc7fe16a5454406649..8741f2d115ab3a7b14c9207bb922a51c977d3aeb 100644 (file)
@@ -98,7 +98,7 @@ int bbswitch_is_available(struct switch_info info) {
    * recognized by bbswitch. Assuming that vga_switcheroo was not told to OFF
    * the device */
   if (module_load("bbswitch", "bbswitch")) {
-    bb_log(LOG_DEBUG, "succesfully loaded bbswitch\n");
+    bb_log(LOG_DEBUG, "successfully loaded bbswitch\n");
     /* hurrah, bbswitch could be loaded which means that the module is
      * available and that the card is supported */
     return 1;