tty: Fix compilation warrning
tty: Fix compilation warrning

 | tty.c: In function ‘tty_restore_ctl_terminal’:
 | include/criu-log.h:42:16: error: ‘index’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

Same time assign CONSOLE_INDEX for debug info.

Signed-off-by: Cyrill Gorcunov <7a1ea01eee6961eb1e372e3508c2670446d086f4@openvz.org>
Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>

tych0/criu,ldu4/criu,gablg1/criu,KKoukiou/criu-remote,gonkulator/criu,biddyweb/criu,gonkulator/criu,sdgdsffdsfff/criu,gablg1/criu,marcosnils/criu,gablg1/criu,LK4D4/criu,LK4D4/criu,LK4D4/criu,eabatalov/criu,KKoukiou/criu-remote,gonkulator/criu,fbocharov/criu,LK4D4/criu,tych0/criu,biddyweb/criu,efiop/criu,gonkulator/criu,wtf42/criu,marcosnils/criu,biddyweb/criu,eabatalov/criu,gablg1/criu,sdgdsffdsfff/criu,eabatalov/criu,rentzsch/criu,tych0/criu,AuthenticEshkinKot/criu,fbocharov/criu,gablg1/criu,gablg1/criu,eabatalov/criu,biddyweb/criu,gonkulator/criu,AuthenticEshkinKot/criu,fbocharov/criu,sdgdsffdsfff/criu,efiop/criu,AuthenticEshkinKot/criu,sdgdsffdsfff/criu,AuthenticEshkinKot/criu,LK4D4/criu,svloyso/criu,fbocharov/criu,efiop/criu,ldu4/criu,KKoukiou/criu-remote,KKoukiou/criu-remote,marcosnils/criu,tych0/criu,efiop/criu,sdgdsffdsfff/criu,svloyso/criu,marcosnils/criu,sdgdsffdsfff/criu,tych0/criu,eabatalov/criu,ldu4/criu,svloyso/criu,biddyweb/criu,fbocharov/criu,biddyweb/criu,efiop/criu,wtf42/criu,AuthenticEshkinKot/criu,ldu4/criu,rentzsch/criu,ldu4/criu,svloyso/criu,efiop/criu,AuthenticEshkinKot/criu,svloyso/criu,wtf42/criu,wtf42/criu,LK4D4/criu,rentzsch/criu,fbocharov/criu,wtf42/criu,tych0/criu,KKoukiou/criu-remote,KKoukiou/criu-remote,marcosnils/criu,svloyso/criu,eabatalov/criu,ldu4/criu,gonkulator/criu,rentzsch/criu,rentzsch/criu,wtf42/criu,marcosnils/criu,rentzsch/criu