X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fdriver.h;fp=src%2Fflash%2Fnor%2Fdriver.h;h=7a5be65174a7876acc9fad8df00c4dd286470d0d;hp=e29d4f5280a5f50cedadad0bbc1ff4744c31062c;hb=64c2e03b23d9cadc1b919d38e902a079d015ddc6;hpb=f2958fc04bd879393fa743860478834e234f05d0;ds=sidebyside diff --git a/src/flash/nor/driver.h b/src/flash/nor/driver.h index e29d4f5280..7a5be65174 100644 --- a/src/flash/nor/driver.h +++ b/src/flash/nor/driver.h @@ -205,15 +205,14 @@ struct flash_driver { /** * Display human-readable information about the flash - * bank into the given buffer. Drivers must be careful to avoid - * overflowing the buffer. + * bank. * * @param bank - the bank to get info about - * @param char - where to put the text for the human to read - * @param buf_size - the size of the human buffer. + * @param cmd - command invocation instance for which to generate + * the textual output * @returns ERROR_OK if successful; otherwise, an error code. */ - int (*info)(struct flash_bank *bank, char *buf, int buf_size); + int (*info)(struct flash_bank *bank, struct command_invocation *cmd); /** * A more gentle flavor of flash_driver_s::probe, performing