Fix flags in printf() calls inside buf_nref_{inc,dec}()