Skip to content

Commit 2381672

Browse files
yuranpereiraDaniel Thompson
authored andcommitted
kdb: Corrects comment for kdballocenv
This patch corrects the comment for the kdballocenv function. The previous comment incorrectly described the function's parameters and return values. Signed-off-by: Yuran Pereira <yuran.pereira@hotmail.com> Link: https://lore.kernel.org/r/DB3PR10MB6835B383B596133EDECEA98AE8ABA@DB3PR10MB6835.EURPRD10.PROD.OUTLOOK.COM [daniel.thompson@linaro.org: fixed whitespace alignment in new lines] Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
1 parent dd712d3 commit 2381672

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

kernel/debug/kdb/kdb_main.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,10 @@ char *kdbgetenv(const char *match)
272272
* kdballocenv - This function is used to allocate bytes for
273273
* environment entries.
274274
* Parameters:
275-
* match A character string representing a numeric value
276-
* Outputs:
277-
* *value the unsigned long representation of the env variable 'match'
275+
* bytes The number of bytes to allocate in the static buffer.
278276
* Returns:
279-
* Zero on success, a kdb diagnostic on failure.
277+
* A pointer to the allocated space in the buffer on success.
278+
* NULL if bytes > size available in the envbuffer.
280279
* Remarks:
281280
* We use a static environment buffer (envbuffer) to hold the values
282281
* of dynamically generated environment variables (see kdb_set). Buffer

0 commit comments

Comments
 (0)