I have this code:
#define PRINT(fmt, ...) printf("%s:%d: "fmt, __FILE__, __LINE__, ##  __VA_ARGS__)
It works well when I pass some value to it, eg PRINT("Hello, world").
But when I pass variable as an argument, eg. PRINT(somevar) it doesn't print the value of variable int somevar. How should I rewrite the macros to make it print variables as well?
 
    