Skip to content

Conversation

@hawkw
Copy link
Member

@hawkw hawkw commented Nov 13, 2025

The Display impl for EreportId was supposed to format the ereport ID as {uuid}:{ena}. Unfortunately, I mixed up which of the Debug and Display impls for TypedUuid was the one that included the type tag, so currently, it looks like this instead:

acb6b01f-5a41-46e2-81bd-2a908051acb3 (ereporter_restart):0x2

which, IMO, looks Kinda Bad.

This branch changes it slightly to use the Display impl for the
TypedUuid so that there's no unslightly (ereporter_restart)
included in the output. I've also formatted the underlying u64 from the
Ena so that it doesn't have an 0x prefix, since the UUID makes it
pretty obvious that the whole string is hex.

Now it should look more like this:

acb6b01f-5a41-46e2-81bd-2a908051acb3:2 

Which, IMO, is much nicer.

The `Display` impl for `EreportId` was _supposed_ to format the ereport
ID as `{uuid}:{ena}`. Unfortunately, I mixed up which of the `Debug` and
`Display` impls for `TypedUuid` was the one that included the type tag,
so currently, it looks like this instead:

``` acb6b01f-5a41-46e2-81bd-2a908051acb3 (ereporter_restart):0x2 ```
which, IMO, looks Kinda Bad.

This branch changes it slightly to use the `Display` impl for the
`TypedUuid` so that there's no unslightly ` (ereporter_restart)`
included in the output. I've also formatted the underlying u64 from the
`Ena` so that it doesn't have an `0x` prefix, since the UUID makes it
pretty obvious that the whole string is hex.

Now it should look more like this:

``` acb6b01f-5a41-46e2-81bd-2a908051acb3:2 ```

Which, IMO, is much nicer.
@hawkw hawkw enabled auto-merge (squash) November 13, 2025 21:16
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.

3 participants