Changeset 1903d77 in mainline


Ignore:
Timestamp:
2024-10-28T20:06:26Z (7 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
a438de5b
Parents:
9fc1d36d
git-author:
Miroslav Cimerman <mc@…> (2024-10-28 20:05:29)
git-committer:
Miroslav Cimerman <mc@…> (2024-10-28 20:06:26)
Message:

bdwrite: fill blocks with 'A' - 'Z'

Following parity blocks in hexdump is easier.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdwrite/bdwrite.c

    r9fc1d36d r1903d77  
    118118                uint8_t *ptr = buf;
    119119                for (size_t i = 0; i < blks_to_write; i++) {
     120                        /*
    120121                        memset(ptr, (i + 1) % 0x100, bsize);
     122                        */
     123                        memset(ptr, 'A' + (i % 26), bsize);
    121124                        ptr = (uint8_t *)((uintptr_t) ptr + bsize);
    122125                }
Note: See TracChangeset for help on using the changeset viewer.