Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
7817a6f3
Commit
7817a6f3
authored
Feb 05, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Fix IDE printf formatting
The usual "u64 is long long only on some platforms" problem.
parent
45ee0a7a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
drivers/ide/ide-proc.c
drivers/ide/ide-proc.c
+1
-1
drivers/ide/ide.c
drivers/ide/ide.c
+1
-1
No files found.
drivers/ide/ide-proc.c
View file @
7817a6f3
...
@@ -597,7 +597,7 @@ int proc_ide_read_capacity
...
@@ -597,7 +597,7 @@ int proc_ide_read_capacity
if
(
!
driver
)
if
(
!
driver
)
len
=
sprintf
(
page
,
"(none)
\n
"
);
len
=
sprintf
(
page
,
"(none)
\n
"
);
else
else
len
=
sprintf
(
page
,
"%llu
\n
"
,
(
__u64
)
((
ide_driver_t
*
)
drive
->
driver
)
->
capacity
(
drive
));
len
=
sprintf
(
page
,
"%llu
\n
"
,
(
unsigned
long
long
)
((
ide_driver_t
*
)
drive
->
driver
)
->
capacity
(
drive
));
PROC_IDE_READ_RETURN
(
page
,
start
,
off
,
count
,
eof
,
len
);
PROC_IDE_READ_RETURN
(
page
,
start
,
off
,
count
,
eof
,
len
);
}
}
...
...
drivers/ide/ide.c
View file @
7817a6f3
...
@@ -813,7 +813,7 @@ byte ide_dump_status (ide_drive_t *drive, const char *msg, byte stat)
...
@@ -813,7 +813,7 @@ byte ide_dump_status (ide_drive_t *drive, const char *msg, byte stat)
high
=
read_24
(
drive
);
high
=
read_24
(
drive
);
sectors
=
((
__u64
)
high
<<
24
)
|
low
;
sectors
=
((
__u64
)
high
<<
24
)
|
low
;
printk
(
", LBAsect=%lld, high=%d, low=%d"
,
sectors
,
high
,
low
);
printk
(
", LBAsect=%lld, high=%d, low=%d"
,
(
long
long
)
sectors
,
high
,
low
);
}
else
{
}
else
{
byte
cur
=
IN_BYTE
(
IDE_SELECT_REG
);
byte
cur
=
IN_BYTE
(
IDE_SELECT_REG
);
if
(
cur
&
0x40
)
{
/* using LBA? */
if
(
cur
&
0x40
)
{
/* using LBA? */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment