lib: add function index_of_string_in_list

Related:rhbz#1067440

Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
testsuite: add a test for index_of_string_in_list

Testing index_of_string_in_list to get right result.

Related:rhbz#1067440

Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
testsuite: change test for make_description

Change test for make_description because of new order its items.

Related to rhbz#1067440

Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
lib: use userfriendly order in the make_description

The reason, time, cmd_line, package, uid, count are always sorted in this
order. The other items are sorted alphabetically and added to the the end of
the list.

Related to rhbz#1067440

Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
make_desc: add reason to the list

Add reason in format "crash-function: reason". Add hostname to the uid line and
add cmdline. Remove executable line.

Related to rhbz#1067440

Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
Merge branch '1067440_add_reason_to_list'

Conflicts:
	tests/Makefile.am