lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #include <stdio.h> |
2 | #include <stdlib.h> | ||||
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 3 | #include "pub_flags.h" |
4 | #include "flags_api.h" | ||||
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 5 | |
6 | int main(int argc, char *argv[]) | ||||
7 | { | ||||
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 8 | int ret = flags_get_current_system(); |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 9 | |
10 | switch (ret) | ||||
11 | { | ||||
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 12 | case DUAL_SYSTEM: |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 13 | printf("ab_bootinfo:ab_a\n"); |
lh | 758261d | 2023-07-13 05:52:04 -0700 | [diff] [blame] | 14 | ret = 1; |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 15 | break; |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 16 | case DUAL_SYSTEM2: |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 17 | printf("ab_bootinfo:ab_b\n"); |
lh | 758261d | 2023-07-13 05:52:04 -0700 | [diff] [blame] | 18 | ret = 2; |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 19 | break; |
20 | default: | ||||
21 | printf("[error]ab_bootinfo:%d\n", ret); | ||||
lh | 758261d | 2023-07-13 05:52:04 -0700 | [diff] [blame] | 22 | ret = 1; |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 23 | break; |
24 | } | ||||
25 | return ret; | ||||
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 26 | } |