Commit Graph

13 Commits

Author SHA1 Message Date
rillig e040c24146 usr.sbin/flashctl: skip lint's strict bool mode with Clang
The strict bool mode is already checked in GCC mode, so restore the
previous idiomatic code.
2024-05-13 20:38:05 +00:00
rillig fe00c2837e flashctl: fix lint's strict bool mode with Clang preprocessor
Treating the return value from the <ctype.h> character classification
functions as an 'int' is neither elegant nor idiomatic, but it works for
now.
2024-05-12 19:03:55 +00:00
rillig 3dab7e4b0d flashctl: use consistent markup in usage message 2023-01-08 16:01:49 +00:00
rillig 57458d4cfd flashctl: remove trailing whitespace
No binary change.
2023-01-08 15:55:25 +00:00
rillig 33f9a3841d flashctl: unexport local functions, add CVS ID
No functional change.
2023-01-08 15:52:30 +00:00
rillig 8f0dc85c43 flashctl: enable lint's strict bool mode
No binary change.
2023-01-08 15:49:51 +00:00
rillig 8d4a11b7de flashctl: fix error handling of integer arguments
Previously, flashctl accepted the command 'erase 0x 0x' as valid, even
though the numbers are not valid hex numbers.

Pointed out by lint, which complained about the wrong type conversion
for tolower, isxdigit and isdigit.
2023-01-08 15:37:56 +00:00
joerg e2f3fd3f0c Properly use format strings 2011-05-24 13:01:53 +00:00
ahoka 76a36edbfd fix one more flash_addr_t fallout 2011-04-04 18:30:07 +00:00
ahoka ab7aeea36d Fix markbad command 2011-03-20 06:10:27 +00:00
wiz 537c852bde Fix a typo, sort commands. 2011-02-27 23:28:12 +00:00
ahoka f338bae6fa Add manpage for flashctl 2011-02-27 17:51:45 +00:00
ahoka 2b6ee22130 Import the Flash and NAND subsytem code contributed by the University
of Szeged, Hungary.

The commit includes:
 - Flash layer, which gives a common API to access flash devices
 - NAND controller subsystem for the flash layer
 - An example OMAP driver which is used on BeagleBoard or alike ARM boards
2011-02-26 18:07:13 +00:00