/*
* LOCKUPINFO
*
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
*
* Contact: Jeesun Kim <iamjs.kim@samsung.com>
*
system("/usr/bin/keygrab_status 2");
snprintf(cbuf, sizeof(cbuf), "%s %s",
- "cp -af /opt/var/log/keygrab_status.txt", cbuf);
+ "cp -af /opt/var/log/keygrab_status.txt", dbuf);
system(cbuf);
snprintf(cbuf, sizeof(cbuf), "%s %s/%s",
- "/usr/bin/screenshot bmp", cbuf, "slp_screenshot.bmp");
+ "/usr/bin/screenshot bmp", dbuf, "slp_screenshot.bmp");
system(cbuf);
- snprintf(cbuf, sizeof(cbuf), "%s > %s/%s",
+ snprintf(cbuf, sizeof(cbuf), "%s> %s/%s",
"xinfo -topvwins 2", dbuf, "xinfo_topvwins.txt");
system(cbuf);
"cp /opt/var/log/nandlog_*", dbuf);
system(cbuf);
- /* launch bluescreen */
- pid_t bs_pid;
-
- if ((bs_pid = fork()) < 0) {
- fprintf(stderr, "[lockupinfo] fork_error\n");
-
- } else if (bs_pid == 0) {
- if (execl
- ("/usr/bin/blue-screen", "blue-screen", ibuf,
- "LOCKUPINFO", (char *)0) < 0) {
- fprintf(stderr, "[lockupinfo] exec_error\n");
- }
- _exit(1); /*/ shouldn't get here */
- }
-
fprintf(stderr, "[lockupinfo] exit\n");
return 0;