Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
647b0d38
Commit
647b0d38
authored
Jan 05, 2009
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MTD] [TESTS] Fix some size_t printk format warnings
Signed-off-by:
David Woodhouse
<
David.Woodhouse@intel.com
>
parent
572acc41
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
drivers/mtd/tests/mtd_subpagetest.c
drivers/mtd/tests/mtd_subpagetest.c
+3
-3
drivers/mtd/tests/mtd_torturetest.c
drivers/mtd/tests/mtd_torturetest.c
+1
-1
No files found.
drivers/mtd/tests/mtd_subpagetest.c
View file @
647b0d38
...
...
@@ -125,7 +125,7 @@ static int write_eraseblock(int ebnum)
(
long
long
)
addr
);
if
(
written
!=
subpgsize
)
{
printk
(
PRINT_PREF
" write size: %#x
\n
"
,
subpgsize
);
printk
(
PRINT_PREF
" written: %#x
\n
"
,
written
);
printk
(
PRINT_PREF
" written: %#
z
x
\n
"
,
written
);
}
return
err
?
err
:
-
1
;
}
...
...
@@ -139,7 +139,7 @@ static int write_eraseblock(int ebnum)
(
long
long
)
addr
);
if
(
written
!=
subpgsize
)
{
printk
(
PRINT_PREF
" write size: %#x
\n
"
,
subpgsize
);
printk
(
PRINT_PREF
" written: %#x
\n
"
,
written
);
printk
(
PRINT_PREF
" written: %#
z
x
\n
"
,
written
);
}
return
err
?
err
:
-
1
;
}
...
...
@@ -164,7 +164,7 @@ static int write_eraseblock2(int ebnum)
if
(
written
!=
subpgsize
)
{
printk
(
PRINT_PREF
" write size: %#x
\n
"
,
subpgsize
*
k
);
printk
(
PRINT_PREF
" written: %#08x
\n
"
,
printk
(
PRINT_PREF
" written: %#08
z
x
\n
"
,
written
);
}
return
err
?
err
:
-
1
;
...
...
drivers/mtd/tests/mtd_torturetest.c
View file @
647b0d38
...
...
@@ -450,7 +450,7 @@ static void report_corrupt(unsigned char *read, unsigned char *written)
printk
(
"-------------------------------------------------------"
"----------------------------------
\n
"
);
printk
(
PRINT_PREF
"Page %d has %d bytes/%d bits failing verify,"
printk
(
PRINT_PREF
"Page %
z
d has %d bytes/%d bits failing verify,"
" starting at offset 0x%x
\n
"
,
(
mtd
->
erasesize
-
check_len
+
i
)
/
pgsize
,
bytes
,
bits
,
first
);
...
...
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