kvs: remove debug stuff
This commit is contained in:
parent
a0b118bbbb
commit
776ca9ceed
@ -88,14 +88,12 @@ const char* getKernver() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const char* getFWMPFlags(){
|
const char* getFWMPFlags(){
|
||||||
// char cmd[] = "tpmc read 0x100A 5 2>/dev/null";
|
char cmd[] = "tpmc read 0x100A 5 2>/dev/null";
|
||||||
// static char output[256];
|
|
||||||
// FILE* fp = popen(cmd, "r");
|
|
||||||
// fgets(output, sizeof(output), fp);
|
|
||||||
// fclose(fp);
|
|
||||||
// trim_newline(output);
|
|
||||||
static char output[256];
|
static char output[256];
|
||||||
output = ""'
|
FILE* fp = popen(cmd, "r");
|
||||||
|
fgets(output, sizeof(output), fp);
|
||||||
|
fclose(fp);
|
||||||
|
trim_newline(output);
|
||||||
|
|
||||||
|
|
||||||
if (strcmp(output, "") == 0) {
|
if (strcmp(output, "") == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user