If the parent mostly makes positive actions, the child will perceive the parent as loving. The ideal positive-to-negative ratio is 80 to 20. Meaning, for every four positive actions a parent does towards his child, he can afford to make one negative one. For example, three hugs and a kiss, earns you one light scolding. If you make more negative actions and less positive ones, your child starts to look at you as an unloving parent.
Allah informs us of the commandments of Prophet Luqman to his son, not just to be mere information, or knowledge, but to be an unerring methodology which has great upbringing guidelines for many aspects in life. Such methodology highlights the great responsibility of upbringing children, and a heavy obligation which requires advice, knowledge, understanding and insight.