When a printing position is displaced by an inclination of a printing head, for example, the displacement can be corrected in an easy and effective manner and a user can easily recognize the displacement of the printing position to correct the displacement. To realize this, dots for forming a test pattern are formed by different scannings by a nozzle group including a plurality of nozzles positioned at one end side of a nozzle row and a nozzle group including a plurality of nozzles positioned at the other end side of the nozzle row. Depending on displacements of the printing positions of these dots, the plurality of nozzles constituting the nozzle row are divided into a plurality of divided nozzle groups. Then, the printing position is adjusted on the basis of the divided nozzle groups.