mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-16 06:52:27 +00:00
Instead of checking for a non-zero return value from kvm_read, check
whether we read as many bytes as we expected.
This commit is contained in:
parent
4c2b812c39
commit
07aa6ef0c9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58869
|
@ -216,7 +216,7 @@ main(argc, argv)
|
|||
}
|
||||
|
||||
if ((display & (MSGINFO | MSGTOTAL)) &&
|
||||
kvm_read(kd, symbols[X_MSGINFO].n_value, &msginfo, sizeof(msginfo))) {
|
||||
kvm_read(kd, symbols[X_MSGINFO].n_value, &msginfo, sizeof(msginfo))== sizeof(msginfo)) {
|
||||
|
||||
if (display & MSGTOTAL) {
|
||||
printf("msginfo:\n");
|
||||
|
|
Loading…
Reference in a new issue