Drop the trailing slash from the HTTP_DOC_LINK
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 9 Sep 2020 01:17:12 +0000 (11:17 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 9 Sep 2020 01:36:07 +0000 (11:36 +1000)
It makes the printf statements nicer and we ne don't use it on its own
anywhere anyway.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
meson.build
src/evdev-debounce.c
src/evdev-mt-touchpad.c
src/evdev-tablet.c
src/evdev.h
src/libinput.c

index b037d9ed6c78547290c8b2f3a98d75aebb05900d..492aba58a618719d995dd6dd1a4c760a18e216d2 100644 (file)
@@ -52,9 +52,9 @@ config_h = configuration_data()
 
 doc_url_base = 'https://wayland.freedesktop.org/libinput/doc'
 if libinput_version[2].to_int() >= 90
-       doc_url = '@0@/latest/'.format(doc_url_base)
+       doc_url = '@0@/latest'.format(doc_url_base)
 else
-       doc_url = '@0@/@1@/'.format(doc_url_base, meson.project_version())
+       doc_url = '@0@/@1@'.format(doc_url_base, meson.project_version())
 endif
 config_h.set_quoted('HTTP_DOC_LINK', doc_url)
 
index 33ff05db71a5e9f407ff135231a0c8f04bf628bd..9864cac286f0b6b8fbf11a2fbf66085e3ae508ce 100644 (file)
@@ -162,7 +162,7 @@ debounce_enable_spurious(struct fallback_dispatch *fallback)
        fallback->debounce.spurious_enabled = true;
        evdev_log_info(fallback->device,
                       "Enabling spurious button debouncing, "
-                      "see %sbutton-debouncing.html for details\n",
+                      "see %s/button-debouncing.html for details\n",
                       HTTP_DOC_LINK);
 }
 
index 4c017c354db7cfbf6811702f4ffa54b76b20aa6b..1608e7934179354ad30a62833ee3c79a6b93ee9e 100644 (file)
@@ -201,7 +201,7 @@ tp_detect_wobbling(struct tp_dispatch *tp,
                        tp->hysteresis.enabled = true;
                        evdev_log_debug(tp->device,
                                        "hysteresis enabled. "
-                                       "See %stouchpad-jitter.html for details\n",
+                                       "See %s/touchpad-jitter.html for details\n",
                                        HTTP_DOC_LINK);
                }
        }
@@ -1754,7 +1754,7 @@ tp_process_state(struct tp_dispatch *tp, uint64_t time)
                                evdev_log_bug_kernel_ratelimit(tp->device,
                                                &tp->jump.warning,
                                                "Touch jump detected and discarded.\n"
-                                               "See %stouchpad-jumping-cursors.html for details\n",
+                                               "See %s/touchpad-jumping-cursors.html for details\n",
                                                HTTP_DOC_LINK);
                        tp_motion_history_reset(t);
                }
@@ -3494,7 +3494,7 @@ tp_init_hysteresis(struct tp_dispatch *tp)
        if (tp->hysteresis.enabled)
                evdev_log_debug(tp->device,
                                "hysteresis enabled. "
-                               "See %stouchpad-jitter.html for details\n",
+                               "See %s/touchpad-jitter.html for details\n",
                                HTTP_DOC_LINK);
 }
 
index 9c66782e9826a82223e918a9258bceb6694aee53..9890aab48be078723b5dc391ffea25dd57a54fe6 100644 (file)
@@ -1345,7 +1345,7 @@ detect_pressure_offset(struct tablet_dispatch *tablet,
        if (offset > axis_range_percentage(pressure, 20)) {
                evdev_log_error(device,
                         "Ignoring pressure offset greater than 20%% detected on tool %s (serial %#x). "
-                        "See %stablet-support.html\n",
+                        "See %s/tablet-support.html\n",
                         tablet_tool_type_to_string(tool->type),
                         tool->serial,
                         HTTP_DOC_LINK);
@@ -1354,7 +1354,7 @@ detect_pressure_offset(struct tablet_dispatch *tablet,
 
        evdev_log_info(device,
                 "Pressure offset detected on tool %s (serial %#x).  "
-                "See %stablet-support.html\n",
+                "See %s/tablet-support.html\n",
                 tablet_tool_type_to_string(tool->type),
                 tool->serial,
                 HTTP_DOC_LINK);
index b0b1b8c6568bd63a728bf1303ec53e7eb74e9ec7..0a4798f2dc6452e1429cc901bbab3075b8e2a070 100644 (file)
@@ -1003,7 +1003,7 @@ evdev_device_check_abs_axis_range(struct evdev_device *device,
                log_info_ratelimit(evdev_libinput_context(device),
                                   &device->abs.warning_range.range_warn_limit,
                                   "Axis %#x value %d is outside expected range [%d, %d]\n"
-                                  "See %sabsolute_coordinate_ranges.html for details\n",
+                                  "See %s/absolute_coordinate_ranges.html for details\n",
                                   code, value, min, max,
                                   HTTP_DOC_LINK);
        }
index 423f81c7c7c0714001ff9417ad35eb0ac6ebd2b7..f544ef94a12c739544b8e9c60862ed210d0d2932 100644 (file)
@@ -1821,7 +1821,7 @@ libinput_init_quirks(struct libinput *libinput)
                log_error(libinput,
                          "Failed to load the device quirks from %s%s%s. "
                          "This will negatively affect device behavior. "
-                         "See %sdevice-quirks.html for details.\n",
+                         "See %s/device-quirks.html for details.\n",
                          data_path,
                          override_file ? " and " : "",
                          override_file ? override_file : "",