| 490 | |
| 491 | #if defined __linux__ && defined __ARM_ARCH |
| 492 | static uint32_t GetHex( char*& ptr, int skip ) |
| 493 | { |
| 494 | uint32_t ret; |
| 495 | ptr += skip; |
| 496 | char* end; |
| 497 | if( ptr[0] == '0' && ptr[1] == 'x' ) |
| 498 | { |
| 499 | ptr += 2; |
| 500 | ret = strtol( ptr, &end, 16 ); |
| 501 | } |
| 502 | else |
| 503 | { |
| 504 | ret = strtol( ptr, &end, 10 ); |
| 505 | } |
| 506 | ptr = end; |
| 507 | return ret; |
| 508 | } |
| 509 | #endif |
| 510 | |
| 511 | static const char* GetHostInfo() |