I was asked to use the preprocessor LINE and FILE printf directives to print informative messages:
#define malloc( x ) mymalloc( x, __FILE__, __LINE__ ) #def