mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine logs for GSO
This commit is contained in:
parent
2cd580f500
commit
8ba3d78e86
1 changed files with 2 additions and 2 deletions
|
@ -4812,7 +4812,7 @@ bool SrsConfig::get_rtc_server_gso()
|
||||||
bool gso_disabled = false;
|
bool gso_disabled = false;
|
||||||
#if !defined(__linux__)
|
#if !defined(__linux__)
|
||||||
gso_disabled = true;
|
gso_disabled = true;
|
||||||
srs_warn("GSO is for Linux 4.18+ only");
|
srs_warn("GSO is disabled, for Linux 4.18+ only");
|
||||||
#else
|
#else
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,18,0)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,18,0)
|
||||||
utsname un = {0};
|
utsname un = {0};
|
||||||
|
@ -4820,7 +4820,7 @@ bool SrsConfig::get_rtc_server_gso()
|
||||||
if (r0 || strcmp(un.release, "4.18.0") < 0) {
|
if (r0 || strcmp(un.release, "4.18.0") < 0) {
|
||||||
gso_disabled = true;
|
gso_disabled = true;
|
||||||
}
|
}
|
||||||
srs_warn("GSO is for Linux 4.18+ only, r0=%d, %s", r0, un.release);
|
srs_warn("GSO is disabled, for Linux 4.18+ only, r0=%d, kernel=%s", r0, un.release);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue