-
Notifications
You must be signed in to change notification settings - Fork 15
Gps #1417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
mattiaswal
wants to merge
8
commits into
main
Choose a base branch
from
gps
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Gps #1417
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ad15a24
Upgrade gpsd
mattiaswal 187c5a5
yang: add feature flags for wifi and gps in infix-hardware
mattiaswal 0c103ce
GPS: Disable GPS in _minimal config
mattiaswal b40a867
test: Add GPS test
mattiaswal 59c54da
GPS: Refactor, do not use hotplug depend and move to finit
mattiaswal 802b841
fixup
mattiaswal 601bd35
fixup
mattiaswal 14cfb97
tests
mattiaswal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| From 9ba3bc688c45a0c9e761c6c8bd0be83d6570c9dc Mon Sep 17 00:00:00 2001 | ||
| From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= <lazzer@gmail.com> | ||
| Date: Fri, 27 Feb 2026 16:58:12 +0100 | ||
| Subject: [PATCH] Always log to syslog | ||
| MIME-Version: 1.0 | ||
| Content-Type: text/plain; charset=UTF-8 | ||
| Content-Transfer-Encoding: 8bit | ||
| Organization: Wires | ||
|
|
||
| Signed-off-by: Mattias Walström <lazzer@gmail.com> | ||
| --- | ||
| gpsd/libgpsd_core.c | 13 ++----------- | ||
| 1 file changed, 2 insertions(+), 11 deletions(-) | ||
|
|
||
| diff --git a/gpsd/libgpsd_core.c b/gpsd/libgpsd_core.c | ||
| index 982f822b8..c53c64838 100644 | ||
| --- a/gpsd/libgpsd_core.c | ||
| +++ b/gpsd/libgpsd_core.c | ||
| @@ -180,17 +180,8 @@ static void gpsd_vlog(const int errlevel, | ||
| // this was crazy expensive, just fix the bad log calls | ||
| // gps_visibilize(outbuf, outlen, buf, strlen(buf)); | ||
|
|
||
| - if (getpid() == getsid(getpid())) { | ||
| - // I think this calls syslog() only when daemonized | ||
| - syslog(level, "%s", outbuf); | ||
| - } else if (NULL != errout->report) { | ||
| - // we are a thread, use report()? | ||
| - // FIXME: is POSIX syslog() thread safe? | ||
| - errout->report(outbuf); | ||
| - } else { | ||
| - // foreground, use stderr? | ||
| - (void)fputs(outbuf, stderr); | ||
| - } | ||
| + // always log to syslog, even with -N | ||
| + syslog(level, "%s", outbuf); | ||
| gpsd_release_reporting_lock(); | ||
| #endif // !SQUELCH_ENABLE | ||
| } | ||
| -- | ||
| 2.43.0 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.