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
adb982ad
Commit
adb982ad
authored
Nov 02, 2023
by
Petr Mladek
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-6.7' into for-linus
parents
9277abd2
72fcce70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
15 deletions
+12
-15
kernel/printk/printk.c
kernel/printk/printk.c
+0
-2
lib/vsprintf.c
lib/vsprintf.c
+12
-13
No files found.
kernel/printk/printk.c
View file @
adb982ad
...
...
@@ -1669,7 +1669,6 @@ static int syslog_print_all(char __user *buf, int size, bool clear)
prb_rec_init_rd
(
&
r
,
&
info
,
text
,
PRINTK_MESSAGE_MAX
);
len
=
0
;
prb_for_each_record
(
seq
,
prb
,
seq
,
&
r
)
{
int
textlen
;
...
...
@@ -4194,7 +4193,6 @@ bool kmsg_dump_get_buffer(struct kmsg_dump_iter *iter, bool syslog,
prb_rec_init_rd
(
&
r
,
&
info
,
buf
,
size
);
len
=
0
;
prb_for_each_record
(
seq
,
prb
,
seq
,
&
r
)
{
if
(
r
.
info
->
seq
>=
iter
->
next_seq
)
break
;
...
...
lib/vsprintf.c
View file @
adb982ad
...
...
@@ -60,7 +60,8 @@
bool
no_hash_pointers
__ro_after_init
;
EXPORT_SYMBOL_GPL
(
no_hash_pointers
);
static
noinline
unsigned
long
long
simple_strntoull
(
const
char
*
startp
,
size_t
max_chars
,
char
**
endp
,
unsigned
int
base
)
noinline
static
unsigned
long
long
simple_strntoull
(
const
char
*
startp
,
char
**
endp
,
unsigned
int
base
,
size_t
max_chars
)
{
const
char
*
cp
;
unsigned
long
long
result
=
0ULL
;
...
...
@@ -95,7 +96,7 @@ static noinline unsigned long long simple_strntoull(const char *startp, size_t m
noinline
unsigned
long
long
simple_strtoull
(
const
char
*
cp
,
char
**
endp
,
unsigned
int
base
)
{
return
simple_strntoull
(
cp
,
INT_MAX
,
endp
,
base
);
return
simple_strntoull
(
cp
,
endp
,
base
,
INT_MAX
);
}
EXPORT_SYMBOL
(
simple_strtoull
);
...
...
@@ -130,8 +131,8 @@ long simple_strtol(const char *cp, char **endp, unsigned int base)
}
EXPORT_SYMBOL
(
simple_strtol
);
static
long
long
simple_strntoll
(
const
char
*
cp
,
size_t
max_chars
,
char
**
endp
,
unsigned
int
base
)
noinline
static
long
long
simple_strntoll
(
const
char
*
cp
,
char
**
endp
,
unsigned
int
base
,
size_t
max_chars
)
{
/*
* simple_strntoull() safely handles receiving max_chars==0 in the
...
...
@@ -140,9 +141,9 @@ static long long simple_strntoll(const char *cp, size_t max_chars, char **endp,
* and the content of *cp is irrelevant.
*/
if
(
*
cp
==
'-'
&&
max_chars
>
0
)
return
-
simple_strntoull
(
cp
+
1
,
max_chars
-
1
,
endp
,
base
);
return
-
simple_strntoull
(
cp
+
1
,
endp
,
base
,
max_chars
-
1
);
return
simple_strntoull
(
cp
,
max_chars
,
endp
,
base
);
return
simple_strntoull
(
cp
,
endp
,
base
,
max_chars
);
}
/**
...
...
@@ -155,7 +156,7 @@ static long long simple_strntoll(const char *cp, size_t max_chars, char **endp,
*/
long
long
simple_strtoll
(
const
char
*
cp
,
char
**
endp
,
unsigned
int
base
)
{
return
simple_strntoll
(
cp
,
INT_MAX
,
endp
,
base
);
return
simple_strntoll
(
cp
,
endp
,
base
,
INT_MAX
);
}
EXPORT_SYMBOL
(
simple_strtoll
);
...
...
@@ -3648,13 +3649,11 @@ int vsscanf(const char *buf, const char *fmt, va_list args)
break
;
if
(
is_sign
)
val
.
s
=
simple_strntoll
(
str
,
field_width
>=
0
?
field_width
:
INT_MAX
,
&
next
,
base
);
val
.
s
=
simple_strntoll
(
str
,
&
next
,
base
,
field_width
>=
0
?
field_width
:
INT_MAX
);
else
val
.
u
=
simple_strntoull
(
str
,
field_width
>=
0
?
field_width
:
INT_MAX
,
&
next
,
base
);
val
.
u
=
simple_strntoull
(
str
,
&
next
,
base
,
field_width
>=
0
?
field_width
:
INT_MAX
);
switch
(
qualifier
)
{
case
'H'
:
/* that's 'hh' in format */
...
...
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