Skip to content
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

fix: decode escape sequences while reading from kmsg #9

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

smira
Copy link
Member

@smira smira commented Jan 11, 2024

The /dev/kmsg escapes any "unsafe" characters with \xXY, so we need to un-escape them to get the raw values back.

The `/dev/kmsg` escapes any "unsafe" characters with `\xXY`, so we need
to un-escape them to get the raw values back.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
@smira
Copy link
Member Author

smira commented Jan 12, 2024

/m

@smira smira merged commit e358d13 into main Jan 12, 2024
14 checks passed
@smira smira deleted the fix/decode-reader branch January 12, 2024 14:20
smira added a commit to smira/talos that referenced this pull request Jan 12, 2024
See: siderolabs/go-kmsg#9

This fixes lots of `\xab` issues, specifically in:

* `talosctl dmesg` output
* `taloscl dashboard`
* embedded dashboard, including OAuth2 QR code display

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/talos that referenced this pull request Jan 18, 2024
See: siderolabs/go-kmsg#9

This fixes lots of `\xab` issues, specifically in:

* `talosctl dmesg` output
* `taloscl dashboard`
* embedded dashboard, including OAuth2 QR code display

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
(cherry picked from commit d5321e0)
smira added a commit to smira/talos that referenced this pull request Feb 2, 2024
See: siderolabs/go-kmsg#9

This fixes lots of `\xab` issues, specifically in:

* `talosctl dmesg` output
* `taloscl dashboard`
* embedded dashboard, including OAuth2 QR code display

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
(cherry picked from commit d5321e0)
smira added a commit to smira/talos that referenced this pull request Feb 2, 2024
See: siderolabs/go-kmsg#9

This fixes lots of `\xab` issues, specifically in:

* `talosctl dmesg` output
* `taloscl dashboard`
* embedded dashboard, including OAuth2 QR code display

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
(cherry picked from commit d5321e0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants