formating of fprintf in ls()