Fork of the vendor (Boundary Devices) u-boot for Reform 2, with minor tweaks. The goal is to migrate to mainstream u-boot or barebox ASAP. The main impediment so far is the 4GB RAM config.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
793 B

  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Simple unit test library
  4. *
  5. * Copyright (c) 2013 Google, Inc
  6. */
  7. #include <common.h>
  8. #include <test/test.h>
  9. #include <test/ut.h>
  10. DECLARE_GLOBAL_DATA_PTR;
  11. void ut_fail(struct unit_test_state *uts, const char *fname, int line,
  12. const char *func, const char *cond)
  13. {
  14. gd->flags &= ~(GD_FLG_SILENT | GD_FLG_RECORD);
  15. printf("%s:%d, %s(): %s\n", fname, line, func, cond);
  16. uts->fail_count++;
  17. }
  18. void ut_failf(struct unit_test_state *uts, const char *fname, int line,
  19. const char *func, const char *cond, const char *fmt, ...)
  20. {
  21. va_list args;
  22. gd->flags &= ~(GD_FLG_SILENT | GD_FLG_RECORD);
  23. printf("%s:%d, %s(): %s: ", fname, line, func, cond);
  24. va_start(args, fmt);
  25. vprintf(fmt, args);
  26. va_end(args);
  27. putc('\n');
  28. uts->fail_count++;
  29. }