Commit af06d81b authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

kconfig: warn about overlong lines in help-texts

From busybox r22852.
parent f51a1ec0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -815,6 +815,11 @@ void new_string(void)
void append_string(const char *str, int size)
{
	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) {
		new_size += START_STRSIZE - 1;
		new_size &= -START_STRSIZE;
+4 −0
Original line number Diff line number Diff line
@@ -49,6 +49,10 @@ void new_string(void)
void append_string(const char *str, int size)
{
	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) {
		new_size += START_STRSIZE - 1;
		new_size &= -START_STRSIZE;