Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-12-03 | util/nvmutil: rename variable in hextonum | Leah Rowe | |
2022-12-03 | util/nvmutil: don't reallocate memory in hextonum | Leah Rowe | |
2022-12-03 | util/nvmutil: dont report bad size if /dev/urandom | Leah Rowe | |
2022-12-03 | util/nvmutil: rename variables in hextonum | Leah Rowe | |
2022-12-03 | util/nvmutil: use BUFSIZ for rmac size in hextonum | Leah Rowe | |
I will be using this function elsewhere, and in general I want this to be usable for lots of programs. | |||
2022-12-03 | util/nvtutil: fix out of bounds error | Leah Rowe | |
the error would have never been triggered, because it never went over 11, but if this code were to be copied elsewhere, it would be problematic | |||
2022-12-01 | util/nvmutil: reset errno on cmd_swap | Leah Rowe | |
If one of the checksums was valid, but the other was not, errno would be set to E_CANCELED, but then the buffer would be modified anyway; this is acceptable behaviour, and errno would later be reset writing the GBE file, which is done only on the condition that the buffer was modified, but it's also a good idea to reset it here just in case. This is not a bugfix, and no behavioural changes will be observed by the user, but this may *prevent* a bug in the future, so let's pre-fix that bug now. | |||
2022-11-27 | util/nvmutil: mild refactoring | Leah Rowe | |
2022-11-27 | util/nvmutil: improved errno handling in main | Leah Rowe | |
2022-11-27 | util/nvmutil: put hextonum in its own function | Leah Rowe | |
2022-11-27 | util/nvmutil: move ENOTDIR check to function | Leah Rowe | |
2022-11-27 | util/nvmutil: further improved errno handling | Leah Rowe | |
2022-11-27 | util/nvmutil: remove errant code | Leah Rowe | |
2022-11-27 | util/nvmutil: improved error handling | Leah Rowe | |
2022-11-26 | util/nvmutil: fix off by one bug | Leah Rowe | |
2022-11-26 | nvmutil copy/swap: actually set nvmPartModified | Leah Rowe | |
2022-11-26 | util/nvmutil: move cmd copy to own function | Leah Rowe | |
2022-11-26 | util/nvmutil: move cmd swap to own function | Leah Rowe | |
2022-11-26 | util/nvmutil: move cmd brick to own function | Leah Rowe | |
2022-11-26 | util/nvmutil: cmd setchecksum in own function | Leah Rowe | |
2022-11-26 | util/nvmutil: split "dump" into smaller functions | Leah Rowe | |
2022-11-26 | util/nvmutil: re-factor to reduce code indentation | Leah Rowe | |
2022-11-26 | util/nvmutil: write gbe files in a function | Leah Rowe | |
in any C program, main() should not contain detailed logic. ideally, the main() function should only be a skeleton, showing the overall logic flow of the program. split writing gbe files into a separate function, to satisfy this criteria. | |||
2022-11-26 | util/nvmutil: human-friendly exit messages, part 2 | Leah Rowe | |
2022-11-18 | util/nvmutil: more human-friendly exit messages | Leah Rowe | |
2022-11-17 | assimilate nvmutil | Leah Rowe | |