Bug 269377 - [Patch][netinet] netinet/tcp_usrreq.c: typo in ddb prints
Summary: [Patch][netinet] netinet/tcp_usrreq.c: typo in ddb prints
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-06 17:29 UTC by guhaoyu2005
Modified: 2023-03-17 13:32 UTC (History)
2 users (show)

See Also:


Attachments
This diff fixes the tcpcb ddb printing issue. (398 bytes, text/plain)
2023-02-06 17:29 UTC, guhaoyu2005
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description guhaoyu2005 2023-02-06 17:29:42 UTC
Created attachment 239954 [details]
This diff fixes the tcpcb ddb printing issue.

Hello,

In DDB, the "show tcpcb [addr]" command prints the tcp control block states. However the snd_nxt field is not being printed properly in hex format. 

Current print -> snd_nxt: x012345678
Correct print -> snd_nxt: 0x12345678

The attached patch fixes this issue.
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-02-06 20:42:39 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=fb8f221aebd0628e201d3d941ab6574eb27078fd

commit fb8f221aebd0628e201d3d941ab6574eb27078fd
Author:     Maxim Konovalov <maxim@FreeBSD.org>
AuthorDate: 2023-02-06 20:41:05 +0000
Commit:     Maxim Konovalov <maxim@FreeBSD.org>
CommitDate: 2023-02-06 20:41:05 +0000

    db_printf: fix a typo

    PR:     269377

 sys/netinet/tcp_usrreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)