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
2395037e
Commit
2395037e
authored
Mar 10, 2009
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'core/printk' into tracing/ftrace
parents
bbcd3063
39e874f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
lib/vsprintf.c
lib/vsprintf.c
+6
-7
No files found.
lib/vsprintf.c
View file @
2395037e
...
...
@@ -768,7 +768,6 @@ static char *pointer(const char *fmt, char *buf, char *end, void *ptr,
static
int
format_decode
(
const
char
*
fmt
,
struct
printf_spec
*
spec
)
{
const
char
*
start
=
fmt
;
bool
sign
=
false
;
/* we finished early by reading the field width */
if
(
spec
->
type
==
FORMAT_TYPE_WITDH
)
{
...
...
@@ -900,7 +899,7 @@ qualifier:
case
'd'
:
case
'i'
:
s
ign
=
true
;
s
pec
->
flags
|=
SIGN
;
case
'u'
:
break
;
...
...
@@ -912,7 +911,7 @@ qualifier:
if
(
spec
->
qualifier
==
'L'
)
spec
->
type
=
FORMAT_TYPE_LONG_LONG
;
else
if
(
spec
->
qualifier
==
'l'
)
{
if
(
s
ign
)
if
(
s
pec
->
flags
&
SIGN
)
spec
->
type
=
FORMAT_TYPE_LONG
;
else
spec
->
type
=
FORMAT_TYPE_ULONG
;
...
...
@@ -921,12 +920,12 @@ qualifier:
}
else
if
(
spec
->
qualifier
==
't'
)
{
spec
->
type
=
FORMAT_TYPE_PTRDIFF
;
}
else
if
(
spec
->
qualifier
==
'h'
)
{
if
(
s
ign
)
if
(
s
pec
->
flags
&
SIGN
)
spec
->
type
=
FORMAT_TYPE_SHORT
;
else
spec
->
type
=
FORMAT_TYPE_USHORT
;
}
else
{
if
(
s
ign
)
if
(
s
pec
->
flags
&
SIGN
)
spec
->
type
=
FORMAT_TYPE_INT
;
else
spec
->
type
=
FORMAT_TYPE_UINT
;
...
...
@@ -1101,8 +1100,8 @@ int vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
case
FORMAT_TYPE_SHORT
:
num
=
(
short
)
va_arg
(
args
,
int
);
break
;
case
FORMAT_TYPE_
U
INT
:
num
=
va_arg
(
args
,
unsigned
int
);
case
FORMAT_TYPE_INT
:
num
=
(
int
)
va_arg
(
args
,
int
);
break
;
default:
num
=
va_arg
(
args
,
unsigned
int
);
...
...
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