mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-07 10:27:42 +00:00
kconfig: warn about overlong lines in help-texts
From busybox r22852.
This commit is contained in:
parent
f51a1ec08e
commit
af06d81be3
@ -815,6 +815,11 @@ void new_string(void)
|
|||||||
void append_string(const char *str, int size)
|
void append_string(const char *str, int size)
|
||||||
{
|
{
|
||||||
int new_size = text_size + size + 1;
|
int new_size = text_size + size + 1;
|
||||||
|
if (size > 70) {
|
||||||
|
fprintf (stderr, "%s:%d warning: Overlong line\n",
|
||||||
|
current_file->name, current_file->lineno);
|
||||||
|
}
|
||||||
|
|
||||||
if (new_size > text_asize) {
|
if (new_size > text_asize) {
|
||||||
new_size += START_STRSIZE - 1;
|
new_size += START_STRSIZE - 1;
|
||||||
new_size &= -START_STRSIZE;
|
new_size &= -START_STRSIZE;
|
||||||
|
@ -49,6 +49,10 @@ void new_string(void)
|
|||||||
void append_string(const char *str, int size)
|
void append_string(const char *str, int size)
|
||||||
{
|
{
|
||||||
int new_size = text_size + size + 1;
|
int new_size = text_size + size + 1;
|
||||||
|
if (size > 70) {
|
||||||
|
fprintf (stderr, "%s:%d warning: Overlong line\n",
|
||||||
|
current_file->name, current_file->lineno);
|
||||||
|
}
|
||||||
if (new_size > text_asize) {
|
if (new_size > text_asize) {
|
||||||
new_size += START_STRSIZE - 1;
|
new_size += START_STRSIZE - 1;
|
||||||
new_size &= -START_STRSIZE;
|
new_size &= -START_STRSIZE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user