Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
educg-net-28668-2608132
OSKernel2024-LabOS-2679
Commits
315aff57
Unverified
Commit
315aff57
authored
8 months ago
by
doge
Committed by
GitHub
8 months ago
Browse files
Options
Download
Patches
Plain Diff
fix +1 to -1 in printf
parent
38b892f8
syscall
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
user/sysinfotest.c
+1
-1
user/sysinfotest.c
with
1 addition
and
1 deletion
+1
-1
user/sysinfotest.c
+
1
−
1
View file @
315aff57
...
@@ -100,7 +100,7 @@ void testproc() {
...
@@ -100,7 +100,7 @@ void testproc() {
if
(
pid
==
0
)
{
if
(
pid
==
0
)
{
sinfo
(
&
info
);
sinfo
(
&
info
);
if
(
info
.
nproc
!=
nproc
-
1
)
{
if
(
info
.
nproc
!=
nproc
-
1
)
{
printf
(
"sysinfotest: FAIL nproc is %d instead of %d
\n
"
,
info
.
nproc
,
nproc
+
1
);
printf
(
"sysinfotest: FAIL nproc is %d instead of %d
\n
"
,
info
.
nproc
,
nproc
-
1
);
exit
(
1
);
exit
(
1
);
}
}
exit
(
0
);
exit
(
0
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets