Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libinput
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
89
Issues
89
List
Boards
Labels
Service Desk
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
libinput
libinput
Commits
5e25bdfb
Commit
5e25bdfb
authored
Jan 31, 2020
by
Peter Hutterer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
timer: make the timer offset error a bit more user-friendly
Signed-off-by:
Peter Hutterer
<
peter.hutterer@who-t.net
>
parent
da9eace8
Pipeline
#103536
passed with stages
in 29 minutes and 35 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/timer.c
src/timer.c
+1
-1
test/test-misc.c
test/test-misc.c
+1
-1
No files found.
src/timer.c
View file @
5e25bdfb
...
...
@@ -93,7 +93,7 @@ libinput_timer_set_flags(struct libinput_timer *timer,
if
(
expire
<
now
)
{
if
((
flags
&
TIMER_FLAG_ALLOW_NEGATIVE
)
==
0
)
log_bug_client
(
timer
->
libinput
,
"timer %s:
offset negative (-%dms)
\n
"
,
"timer %s:
scheduled expiry is in the past (-%dms), your system is too slow
\n
"
,
timer
->
timer_name
,
us2ms
(
now
-
expire
));
}
else
if
((
expire
-
now
)
>
ms2us
(
5000
))
{
...
...
test/test-misc.c
View file @
5e25bdfb
...
...
@@ -660,7 +660,7 @@ static void timer_offset_warning(struct libinput *libinput,
int
*
warning_triggered
=
(
int
*
)
libinput_get_user_data
(
libinput
);
if
(
priority
==
LIBINPUT_LOG_PRIORITY_ERROR
&&
strstr
(
format
,
"
offset negative
"
))
strstr
(
format
,
"
scheduled expiry is in the past
"
))
(
*
warning_triggered
)
++
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment