Go to the documentation of this file. 19 #define AF_MSG(fmt,...) do { \ 20 printf("%s:%d: " fmt "\n", \ 21 __FILE__, __LINE__, ##__VA_ARGS__); \ 73 #define AF_MEM_INFO(msg) do { \ 74 size_t abytes = 0, abuffs = 0, lbytes = 0, lbuffs = 0; \ 75 af_err err = af_device_mem_info(&abytes, &abuffs, &lbytes, &lbuffs); \ 76 if(err == AF_SUCCESS) { \ 77 printf("AF Memory at %s:%d: " msg "\n", __FILE__, __LINE__); \ 78 printf("Allocated [ Bytes | Buffers ] = [ %ld | %ld ]\n", abytes, abuffs); \ 79 printf("In Use [ Bytes | Buffers ] = [ %ld | %ld ]\n", lbytes, lbuffs); \ 81 fprintf(stderr, "AF Memory at %s:%d: " msg "\nAF Error %d\n", \ 82 __FILE__, __LINE__, err); \