lib: Rename fdt_print() to fdt_print_path()
Rename the function to better indicate that it prints from a specific path in the device tree. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-developed-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -524,7 +524,7 @@ static int do_fdt(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
else
|
||||
prop = NULL;
|
||||
|
||||
ret = fdt_print(pathp, prop, depth);
|
||||
ret = fdt_print_path(pathp, prop, depth);
|
||||
if (ret != 0)
|
||||
return ret;
|
||||
|
||||
|
||||
@@ -504,7 +504,7 @@ int fdt_kaslrseed(void *blob, bool overwrite);
|
||||
bool fdt_printable_str(const void *data, int len);
|
||||
|
||||
/**
|
||||
* fdt_print() - Print a portion of the device tree
|
||||
* fdt_print_path() - Print a portion of the device tree
|
||||
*
|
||||
* Recursively prints the working device tree starting from the given path.
|
||||
* The depth parameter controls how deeply nested nodes are printed.
|
||||
@@ -514,6 +514,6 @@ bool fdt_printable_str(const void *data, int len);
|
||||
* @depth: Maximum depth to print
|
||||
* Return: 0 on success, 1 on error
|
||||
*/
|
||||
int fdt_print(const char *pathp, char *prop, int depth);
|
||||
int fdt_print_path(const char *pathp, char *prop, int depth);
|
||||
|
||||
#endif /* ifndef __FDT_SUPPORT_H */
|
||||
|
||||
@@ -113,7 +113,7 @@ static void print_data(const void *data, int len)
|
||||
* Recursively print (a portion of) the working_fdt. The depth parameter
|
||||
* determines how deeply nested the fdt is printed.
|
||||
*/
|
||||
int fdt_print(const char *pathp, char *prop, int depth)
|
||||
int fdt_print_path(const char *pathp, char *prop, int depth)
|
||||
{
|
||||
static char tabs[MAX_LEVEL+1] =
|
||||
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"
|
||||
|
||||
Reference in New Issue
Block a user