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
Kirill Smelkov
linux
Commits
2be99912
Commit
2be99912
authored
Jul 30, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MEDIA]: Fix u64 printing in bttv driver.
parent
1d35d71d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
drivers/media/video/bttv-driver.c
drivers/media/video/bttv-driver.c
+7
-7
drivers/media/video/bttv-risc.c
drivers/media/video/bttv-risc.c
+6
-6
No files found.
drivers/media/video/bttv-driver.c
View file @
2be99912
...
...
@@ -2948,16 +2948,16 @@ static void bttv_print_irqbits(u32 print, u32 mark)
static
void
bttv_print_riscaddr
(
struct
bttv
*
btv
)
{
printk
(
" main: %08Lx
\n
"
,
(
u
64
)
btv
->
main
.
dma
);
(
u
nsigned
long
long
)
btv
->
main
.
dma
);
printk
(
" vbi : o=%08Lx e=%08Lx
\n
"
,
btv
->
vcurr
?
(
u
64
)
btv
->
vcurr
->
top
.
dma
:
0
,
btv
->
vcurr
?
(
u
64
)
btv
->
vcurr
->
bottom
.
dma
:
0
);
btv
->
vcurr
?
(
u
nsigned
long
long
)
btv
->
vcurr
->
top
.
dma
:
0
,
btv
->
vcurr
?
(
u
nsigned
long
long
)
btv
->
vcurr
->
bottom
.
dma
:
0
);
printk
(
" cap : o=%08Lx e=%08Lx
\n
"
,
btv
->
top
?
(
u
64
)
btv
->
top
->
top
.
dma
:
0
,
btv
->
bottom
?
(
u
64
)
btv
->
bottom
->
bottom
.
dma
:
0
);
btv
->
top
?
(
u
nsigned
long
long
)
btv
->
top
->
top
.
dma
:
0
,
btv
->
bottom
?
(
u
nsigned
long
long
)
btv
->
bottom
->
bottom
.
dma
:
0
);
printk
(
" scr : o=%08Lx e=%08Lx
\n
"
,
btv
->
screen
?
(
u
64
)
btv
->
screen
->
top
.
dma
:
0
,
btv
->
screen
?
(
u
64
)
btv
->
screen
->
bottom
.
dma
:
0
);
btv
->
screen
?
(
u
nsigned
long
long
)
btv
->
screen
->
top
.
dma
:
0
,
btv
->
screen
?
(
u
nsigned
long
long
)
btv
->
screen
->
bottom
.
dma
:
0
);
}
static
void
bttv_irq_timeout
(
unsigned
long
data
)
...
...
drivers/media/video/bttv-risc.c
View file @
2be99912
...
...
@@ -530,10 +530,10 @@ bttv_set_dma(struct bttv *btv, int override, int irqflags)
d2printk
(
KERN_DEBUG
"bttv%d: capctl=%x irq=%d top=%08Lx/%08Lx even=%08Lx/%08Lx
\n
"
,
btv
->
nr
,
capctl
,
irqflags
,
btv
->
vcurr
?
(
u
64
)
btv
->
vcurr
->
top
.
dma
:
0
,
btv
->
top
?
(
u
64
)
btv
->
top
->
top
.
dma
:
0
,
btv
->
vcurr
?
(
u
64
)
btv
->
vcurr
->
bottom
.
dma
:
0
,
btv
->
bottom
?
(
u
64
)
btv
->
bottom
->
bottom
.
dma
:
0
);
btv
->
vcurr
?
(
u
nsigned
long
long
)
btv
->
vcurr
->
top
.
dma
:
0
,
btv
->
top
?
(
u
nsigned
long
long
)
btv
->
top
->
top
.
dma
:
0
,
btv
->
vcurr
?
(
u
nsigned
long
long
)
btv
->
vcurr
->
bottom
.
dma
:
0
,
btv
->
bottom
?
(
u
nsigned
long
long
)
btv
->
bottom
->
bottom
.
dma
:
0
);
cmd
=
BT848_RISC_JUMP
;
if
(
irqflags
)
{
...
...
@@ -568,7 +568,7 @@ bttv_risc_init_main(struct bttv *btv)
if
((
rc
=
bttv_riscmem_alloc
(
btv
->
dev
,
&
btv
->
main
,
PAGE_SIZE
))
<
0
)
return
rc
;
dprintk
(
KERN_DEBUG
"bttv%d: risc main @ %08Lx
\n
"
,
btv
->
nr
,(
u
64
)
btv
->
main
.
dma
);
btv
->
nr
,(
u
nsigned
long
long
)
btv
->
main
.
dma
);
btv
->
main
.
cpu
[
0
]
=
cpu_to_le32
(
BT848_RISC_SYNC
|
BT848_RISC_RESYNC
|
BT848_FIFO_STATUS_VRE
);
...
...
@@ -612,7 +612,7 @@ bttv_risc_hook(struct bttv *btv, int slot, struct bttv_riscmem *risc,
btv
->
main
.
cpu
[
slot
+
1
]
=
cpu_to_le32
(
next
);
}
else
{
d2printk
(
KERN_DEBUG
"bttv%d: risc=%p slot[%d]=%08Lx irq=%d
\n
"
,
btv
->
nr
,
risc
,
slot
,(
u
64
)
risc
->
dma
,
irqflags
);
btv
->
nr
,
risc
,
slot
,(
u
nsigned
long
long
)
risc
->
dma
,
irqflags
);
cmd
=
BT848_RISC_JUMP
;
if
(
irqflags
)
cmd
|=
BT848_RISC_IRQ
|
(
irqflags
<<
16
);
...
...
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