[PATCH] mtd-utils: nandtest: handle large nand devices

David Oberhollenzer david.oberhollenzer at sigma-star.at
Wed Aug 23 04:19:45 PDT 2023


Hi,

I applied this to mtd-utils.git master.

A quick side note: Did you send this via something other than git-send-email?

Your mail client or server seems to have mangled the patch format quite a bit.

E.g. here, there is some white space damage that breaks the file:

On 8/22/23 10:09, Christian Wendt he/him wrote:
> @@ -145,6 +146,27 @@ static int erase_and_write(loff_t ofs, unsigned char *data, unsigned char *rbuf,
>   }
>    +static uint64_t get_mem_size(const char* device)
> +{
> +    const char* p = strrchr(device, '/');

similarly, there are some extra spaces where they don't belong,
and some empty line are missing here:

> @@ -212,11 +235,11 @@ int main(int argc, char **argv)
>               break;
>            case 'o':
> -            offset = simple_strtoul(optarg, &error);
> +            offset = simple_strtoull(optarg, &error);
>               break;
>            case 'l':
> -            length = simple_strtoul(optarg, &error);
> +            length = simple_strtoull(optarg, &error);
>               break;
>            }

For now, I massaged the patch file a little to make it apply on my end.

Thanks,

David



More information about the linux-mtd mailing list