format function accepts extra argument

now format function gives extra argument, pointer type. based on this
one can have different label’s for different pointers.