Eric Curtin
20572c1417
Fix segfault originating in get_suffix function
...
Some callers try to print the return value from here, printf %s NULL,
ends up being a segfault.
2023-05-29 01:27:55 +00:00
Eric Curtin
9d7600df51
Use scope-based memory management for malloc, free, open, close, etc.
...
If we are using C++, we might as well use scope-based memory management
for these things, cleaner and less error prone. Also removed
unnecessary gotos.
2023-05-29 01:26:29 +00:00
alefnode
df63d7c21c
Fix to << uint32_t has not been declared >>
2023-05-04 09:15:29 +02:00
Richard Acayan
17ee1b8e65
detect and handle emmc-backed xbl partitions when switching slots
2022-08-31 17:49:18 -04:00
Caleb Connolly
50ef0328af
minor cleanups, improve error handling
...
gracefully handle UFS_BSG not being enabled in the kernel, rather than
putting the device into a semi-bricked state (oops).
2022-06-10 19:18:13 +01:00
Caleb Connolly
f885e96bd3
Don't fail if slot already marked successful
2022-06-04 16:03:46 +01:00
Caleb Connolly
4c49647382
cleanup, stub out tests
...
not sure how best to write tests, probably a larger test framework on
a board farm to test on real devices will be more sensible.
2022-06-04 15:51:22 +01:00